From 40fcf7977854f8e5cb41800ec950d494eac4d386 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 13 Dec 2025 01:14:50 +0200 Subject: [PATCH] fix(status_bar): code mime not updating between notes --- apps/client/src/widgets/react/hooks.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/client/src/widgets/react/hooks.tsx b/apps/client/src/widgets/react/hooks.tsx index d314707f2..0b9546694 100644 --- a/apps/client/src/widgets/react/hooks.tsx +++ b/apps/client/src/widgets/react/hooks.tsx @@ -349,7 +349,7 @@ export function useActiveNoteContext() { useEffect(() => { setNote(noteContext?.note); - }, [ noteContext ]); + }, [ notePath ]); useTriliumEvents([ "setNoteContext", "activeContextChanged", "noteSwitchedAndActivated", "noteSwitched" ], () => { const noteContext = appContext.tabManager.getActiveContext() ?? undefined;