Skip to content

Commit

Permalink
Fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
colebemis committed Jan 16, 2025
1 parent 7fd350c commit de8545a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/note-preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<string>()
Expand Down

0 comments on commit de8545a

Please sign in to comment.