fix(ribbon): code note types not refreshing

This commit is contained in:
Elian Doran 2025-08-27 19:13:30 +03:00
parent d616bc09c9
commit 1e1c8cc4ff
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -102,7 +102,7 @@ export function useTriliumOption(name: OptionNames, needsRefresh?: boolean): [st
const newValue = options.get(name);
setValue(newValue);
}
}, [ name ]));
}, [ name, setValue ]));
useDebugValue(name);

View file

@ -145,7 +145,7 @@ function CodeMimeTypes() {
result[initial].push(mimeType);
}
return result;
}, []);
}, [ codeNotesMimeTypes ]);
return (
<OptionsSection title={t("code_mime_types.title")}>