Skip to content

Build your personal knowledge base with Trilium Notes

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.tsx
index 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);