Skip to content

Build your personal knowledge base with Trilium Notes

fix(react/note_title): title shown on empty widget pane

Elian Doran9e947f742d83
diff --git a/apps/client/src/widgets/note_title.tsx b/apps/client/src/widgets/note_title.tsx
index 8c0cfae7d3..963523fdad 100644
--- a/apps/client/src/widgets/note_title.tsx
+++ b/apps/client/src/widgets/note_title.tsx
@@ -41,7 +41,7 @@ export default function NoteTitleWidget() {
return (
<div className="note-title-widget">
- <FormTextBox
+ {note && <FormTextBox
autocomplete="off"
currentValue={(!isReadOnly ? title : navigationTitle) ?? ""}
placeholder={t("note_title.placeholder")}
@@ -52,7 +52,7 @@ export default function NoteTitleWidget() {
newTitle.current = newValue;
spacedUpdate.scheduleUpdate();
}}
- />
+ />}
</div>
);
}