Skip to content

Build your personal knowledge base with Trilium Notes

fix(client): note title shown for read-only notes for the first time

Elian Doran23c2acaab786
diff --git a/apps/client/src/widgets/note_title.tsx b/apps/client/src/widgets/note_title.tsx
index b3323fb1c5..8207198d6b 100644
--- a/apps/client/src/widgets/note_title.tsx
+++ b/apps/client/src/widgets/note_title.tsx
@@ -34,7 +34,7 @@ export default function NoteTitleWidget() {
if (isReadOnly) {
noteContext?.getNavigationTitle().then(setNavigationTitle);
}
- }, [noteContext, isReadOnly]);
+ }, [note, isReadOnly]);
// Save changes to title.
const spacedUpdate = useSpacedUpdate(async () => {