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"