From 7442799836f89233c82364b8b7dfe9a7c9401f14 Mon Sep 17 00:00:00 2001 From: daniel31x13 Date: Tue, 14 May 2024 12:14:22 -0400 Subject: [PATCH] minor fix --- components/LinkViews/LinkCard.tsx | 2 +- components/ReadableView.tsx | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/components/LinkViews/LinkCard.tsx b/components/LinkViews/LinkCard.tsx index d93904a..8f11cea 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 977ca2a..539ec8e 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 ( -
+