fix(inline_title): note type switcher visible for options

This commit is contained in:
Elian Doran 2025-12-13 16:33:33 +02:00
parent 476c162016
commit b56e5b2483
No known key found for this signature in database

View File

@ -159,7 +159,7 @@ function NoteTypeSwitcher() {
const currentNoteTypeData = useMemo(() => NOTE_TYPES.find(t => t.type === currentNoteType), [ currentNoteType ]); const currentNoteTypeData = useMemo(() => NOTE_TYPES.find(t => t.type === currentNoteType), [ currentNoteType ]);
const { builtinTemplates, collectionTemplates } = useBuiltinTemplates(); const { builtinTemplates, collectionTemplates } = useBuiltinTemplates();
return ( return (currentNoteType && supportedNoteTypes.has(currentNoteType) &&
<div <div
className="note-type-switcher" className="note-type-switcher"
onWheel={onWheelHorizontalScroll} onWheel={onWheelHorizontalScroll}