From de8545aa3b066c1a2bdada97ade2146948ae3df8 Mon Sep 17 00:00:00 2001 From: Cole Bemis Date: Thu, 16 Jan 2025 02:13:33 -0800 Subject: [PATCH] Fix type error --- src/components/note-preview.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/note-preview.tsx b/src/components/note-preview.tsx index f303bd0d..975c86f0 100644 --- a/src/components/note-preview.tsx +++ b/src/components/note-preview.tsx @@ -14,7 +14,7 @@ export function NotePreview({ note }: { note: Note }) { const tagsArray = Array.isArray(note.frontmatter?.tags) && note.frontmatter.tags.every((tag) => typeof tag === "string") - ? note.frontmatter.tags + ? (note.frontmatter.tags as string[]) : [] const frontmatterTags = new Set()