mirror of
https://github.com/zadam/trilium.git
synced 2025-12-13 03:39:54 +01:00
fix(status_bar): code mime not updating between notes
This commit is contained in:
@@ -349,7 +349,7 @@ export function useActiveNoteContext() {
|
||||
|
||||
useEffect(() => {
|
||||
setNote(noteContext?.note);
|
||||
}, [ noteContext ]);
|
||||
}, [ notePath ]);
|
||||
|
||||
useTriliumEvents([ "setNoteContext", "activeContextChanged", "noteSwitchedAndActivated", "noteSwitched" ], () => {
|
||||
const noteContext = appContext.tabManager.getActiveContext() ?? undefined;
|
||||
|
||||
Reference in New Issue
Block a user