mirror of
https://github.com/zadam/trilium.git
synced 2025-10-09 15:08:14 +08:00
fix(ribbon): code note types not refreshing
This commit is contained in:
parent
d616bc09c9
commit
1e1c8cc4ff
2 changed files with 2 additions and 2 deletions
|
@ -102,7 +102,7 @@ export function useTriliumOption(name: OptionNames, needsRefresh?: boolean): [st
|
|||
const newValue = options.get(name);
|
||||
setValue(newValue);
|
||||
}
|
||||
}, [ name ]));
|
||||
}, [ name, setValue ]));
|
||||
|
||||
useDebugValue(name);
|
||||
|
||||
|
|
|
@ -145,7 +145,7 @@ function CodeMimeTypes() {
|
|||
result[initial].push(mimeType);
|
||||
}
|
||||
return result;
|
||||
}, []);
|
||||
}, [ codeNotesMimeTypes ]);
|
||||
|
||||
return (
|
||||
<OptionsSection title={t("code_mime_types.title")}>
|
||||
|
|
Loading…
Add table
Reference in a new issue