Skip to content

Build your personal knowledge base with Trilium Notes

fix(layout/inline-title): hide note type switcher on other note types

Elian Doran7666f44b7a3a
diff --git a/apps/client/src/widgets/layout/InlineTitle.tsx b/apps/client/src/widgets/layout/InlineTitle.tsx
index 28ea8dfc20..e802bebc43 100644
--- a/apps/client/src/widgets/layout/InlineTitle.tsx
+++ b/apps/client/src/widgets/layout/InlineTitle.tsx
@@ -136,7 +136,7 @@ function NoteTypeSwitcher() {
const currentNoteType = useNoteProperty(note, "type");
const noteTypes = useMemo(() => NOTE_TYPES.filter((nt) => !nt.reserved && !nt.static), []);
- return (note &&
+ return (note?.type === "text" &&
<div
className="note-type-switcher"
onWheel={onWheelHorizontalScroll}