mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 15:19:01 +02:00
fix(client): note title shown for read-only notes for the first time
This commit is contained in:
parent
4cc55b02ab
commit
23c2acaab7
@ -34,7 +34,7 @@ export default function NoteTitleWidget() {
|
|||||||
if (isReadOnly) {
|
if (isReadOnly) {
|
||||||
noteContext?.getNavigationTitle().then(setNavigationTitle);
|
noteContext?.getNavigationTitle().then(setNavigationTitle);
|
||||||
}
|
}
|
||||||
}, [noteContext, isReadOnly]);
|
}, [note, isReadOnly]);
|
||||||
|
|
||||||
// Save changes to title.
|
// Save changes to title.
|
||||||
const spacedUpdate = useSpacedUpdate(async () => {
|
const spacedUpdate = useSpacedUpdate(async () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user