chore(react/type_widgets): refresh on all viewscope changes

This commit is contained in:
Elian Doran
2025-09-25 18:44:06 +03:00
parent 5c21759de9
commit 5bfa0d13e3
2 changed files with 4 additions and 3 deletions

View File

@@ -136,7 +136,7 @@ function useNoteInfo() {
});
}
useEffect(refresh, [ actualNote, noteContext, noteContext?.viewScope?.viewMode ]);
useEffect(refresh, [ actualNote, noteContext, noteContext?.viewScope ]);
useTriliumEvent("readOnlyTemporarilyDisabled", ({ noteContext: eventNoteContext }) => {
if (eventNoteContext?.ntxId !== noteContext?.ntxId) return;
refresh();