mirror of
https://github.com/zadam/trilium.git
synced 2026-01-11 09:04:28 +01:00
fix(status_bar): code mime not updating between notes
This commit is contained in:
parent
88a779bbdb
commit
40fcf79778
@ -349,7 +349,7 @@ export function useActiveNoteContext() {
|
||||
|
||||
useEffect(() => {
|
||||
setNote(noteContext?.note);
|
||||
}, [ noteContext ]);
|
||||
}, [ notePath ]);
|
||||
|
||||
useTriliumEvents([ "setNoteContext", "activeContextChanged", "noteSwitchedAndActivated", "noteSwitched" ], () => {
|
||||
const noteContext = appContext.tabManager.getActiveContext() ?? undefined;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user