mirror of
https://github.com/zadam/trilium.git
synced 2025-12-17 12:54:24 +01:00
fix(inline_title): note type switcher visible for options
This commit is contained in:
parent
476c162016
commit
b56e5b2483
@ -159,7 +159,7 @@ function NoteTypeSwitcher() {
|
||||
const currentNoteTypeData = useMemo(() => NOTE_TYPES.find(t => t.type === currentNoteType), [ currentNoteType ]);
|
||||
const { builtinTemplates, collectionTemplates } = useBuiltinTemplates();
|
||||
|
||||
return (
|
||||
return (currentNoteType && supportedNoteTypes.has(currentNoteType) &&
|
||||
<div
|
||||
className="note-type-switcher"
|
||||
onWheel={onWheelHorizontalScroll}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user