mirror of
https://github.com/zadam/trilium.git
synced 2026-07-11 11:43:59 +02:00
fix(breadcrumb): note title update
This commit is contained in:
@@ -1214,6 +1214,12 @@ export function useNoteTitle(noteId: string | undefined, parentNoteId: string |
|
||||
refresh();
|
||||
});
|
||||
|
||||
// React to external changes.
|
||||
useTriliumEvent("entitiesReloaded", ({ loadResults }) => {
|
||||
if (loadResults.isNoteReloaded(noteId)) {
|
||||
refresh();
|
||||
}
|
||||
});
|
||||
return title;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user