From 1e1c8cc4ff0976a25a0c667974dba5bfb8524ea5 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 27 Aug 2025 19:13:30 +0300 Subject: [PATCH] fix(ribbon): code note types not refreshing --- apps/client/src/widgets/react/hooks.tsx | 2 +- apps/client/src/widgets/type_widgets/options/code_notes.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/client/src/widgets/react/hooks.tsx b/apps/client/src/widgets/react/hooks.tsx index 0c211739c..d1719b147 100644 --- a/apps/client/src/widgets/react/hooks.tsx +++ b/apps/client/src/widgets/react/hooks.tsx @@ -102,7 +102,7 @@ export function useTriliumOption(name: OptionNames, needsRefresh?: boolean): [st const newValue = options.get(name); setValue(newValue); } - }, [ name ])); + }, [ name, setValue ])); useDebugValue(name); diff --git a/apps/client/src/widgets/type_widgets/options/code_notes.tsx b/apps/client/src/widgets/type_widgets/options/code_notes.tsx index a9f30bacc..cf951e3b2 100644 --- a/apps/client/src/widgets/type_widgets/options/code_notes.tsx +++ b/apps/client/src/widgets/type_widgets/options/code_notes.tsx @@ -145,7 +145,7 @@ function CodeMimeTypes() { result[initial].push(mimeType); } return result; - }, []); + }, [ codeNotesMimeTypes ]); return (