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(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.tsxindex 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" &&<divclassName="note-type-switcher"onWheel={onWheelHorizontalScroll}