diff --git a/components/LinkViews/LinkCard.tsx b/components/LinkViews/LinkCard.tsx index d93904a1..8f11cea2 100644 --- a/components/LinkViews/LinkCard.tsx +++ b/components/LinkViews/LinkCard.tsx @@ -208,7 +208,7 @@ export default function LinkCard({ link, flipDropdown, editMode }: Props) { )}
- {link.tags[0] && ( + {link.tags && link.tags[0] && ( <>Tags
diff --git a/components/ReadableView.tsx b/components/ReadableView.tsx index 977ca2a0..539ec8e8 100644 --- a/components/ReadableView.tsx +++ b/components/ReadableView.tsx @@ -43,7 +43,7 @@ export default function ReadableView({ link }: Props) { const router = useRouter(); - const { links, getLink } = useLinkStore(); + const { getLink } = useLinkStore(); const { collections } = useCollectionStore(); const collection = useMemo(() => { @@ -138,7 +138,7 @@ export default function ReadableView({ link }: Props) { }, [colorPalette]); return ( -+
{unescapeString( link?.name || link?.description || link?.url || "" )} @@ -212,7 +212,7 @@ export default function ReadableView({ link }: Props) { {link?.collection.name}
- {link?.tags.map((e, i) => ( + {link?.tags?.map((e, i) => (