mirror of
https://github.com/zadam/trilium.git
synced 2025-10-11 16:06:24 +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);
|
const newValue = options.get(name);
|
||||||
setValue(newValue);
|
setValue(newValue);
|
||||||
}
|
}
|
||||||
}, [ name ]));
|
}, [ name, setValue ]));
|
||||||
|
|
||||||
useDebugValue(name);
|
useDebugValue(name);
|
||||||
|
|
||||||
|
|
|
@ -145,7 +145,7 @@ function CodeMimeTypes() {
|
||||||
result[initial].push(mimeType);
|
result[initial].push(mimeType);
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}, []);
|
}, [ codeNotesMimeTypes ]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<OptionsSection title={t("code_mime_types.title")}>
|
<OptionsSection title={t("code_mime_types.title")}>
|
||||||
|
|
Loading…
Add table
Reference in a new issue