diff --git a/src/lib/stores/notes.ts b/src/lib/stores/notes.ts index ce13241..0ac3aad 100644 --- a/src/lib/stores/notes.ts +++ b/src/lib/stores/notes.ts @@ -37,7 +37,9 @@ export const unpinnedNotes = derived(filteredNotes, ($notes) => export const allTags = derived(notes, ($notes) => { const tagSet = new Set(); - $notes.forEach((n) => n.tags?.forEach((t) => tagSet.add(t))); + $notes + .filter((n) => !n.archived && !n.trashed) + .forEach((n) => n.tags?.forEach((t) => tagSet.add(t))); return [...tagSet].sort(); });