From 33be9e5d83a80637f6f41c2ebae87845e4eeb189 Mon Sep 17 00:00:00 2001 From: daniel31x13 Date: Sat, 2 Dec 2023 15:23:26 -0500 Subject: [PATCH] minor patch --- components/ModalContent/NewLinkModal.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/ModalContent/NewLinkModal.tsx b/components/ModalContent/NewLinkModal.tsx index cd7cd53..1c73e40 100644 --- a/components/ModalContent/NewLinkModal.tsx +++ b/components/ModalContent/NewLinkModal.tsx @@ -23,6 +23,7 @@ export default function NewLinkModal({ onClose }: Props) { name: "", url: "", description: "", + type: "url", tags: [], screenshotPath: "", pdfPath: "", @@ -32,7 +33,7 @@ export default function NewLinkModal({ onClose }: Props) { name: "", ownerId: data?.user.id as number, }, - }; + } as LinkIncludingShortenedCollectionAndTags; const [link, setLink] = useState(initial); @@ -127,7 +128,7 @@ export default function NewLinkModal({ onClose }: Props) {

Link

setLink({ ...link, url: e.target.value })} placeholder="e.g. http://example.com/" className="bg-base-200"