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