Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(new_layout): note type switcher doesn't offer NoteMap (closes #9755)
Elian Doran3f943747eca8
diff --git a/apps/client/src/widgets/layout/NoteTypeSwitcher.tsx b/apps/client/src/widgets/layout/NoteTypeSwitcher.tsxindex 4830b57060..1392fef7cf 100644--- a/apps/client/src/widgets/layout/NoteTypeSwitcher.tsx+++ b/apps/client/src/widgets/layout/NoteTypeSwitcher.tsx@@ -27,7 +27,8 @@ export default function NoteTypeSwitcher({ note }: { note?: FNote | null }) {const pinnedNoteTypes: NoteTypeMapping[] = [];const restNoteTypes: NoteTypeMapping[] = [];for (const noteType of NOTE_TYPES) {- if (noteType.reserved || noteType.static || noteType.type === "book") continue;+ if (noteType.reserved || noteType.type === "book") continue;+ if (noteType.type === "search") continue;if (noteType.type === "llmChat" && !isExperimentalFeatureEnabled("llm")) continue;if (SWITCHER_PINNED_NOTE_TYPES.has(noteType.type)) {pinnedNoteTypes.push(noteType);