chore(inline_title): fix type error

This commit is contained in:
Elian Doran
2025-12-13 16:43:27 +02:00
parent b10e7f1811
commit 0c9ff4dae4

View File

@@ -164,7 +164,7 @@ function NoteTypeSwitcher() {
className="note-type-switcher"
onWheel={onWheelHorizontalScroll}
>
{blob?.contentLength === 0 && (
{note && blob?.contentLength === 0 && (
<>
<div className="intro">{t("note_title.note_type_switcher_label", { type: currentNoteTypeData?.title.toLocaleLowerCase() })}</div>
{pinnedNoteTypes.map(noteType => noteType.type !== currentNoteType && (