mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 01:36:24 +01:00
chore(react/settings): reimplement reset shortcuts
This commit is contained in:
@@ -167,10 +167,9 @@ export function useTriliumOptions<T extends OptionNames>(...names: T[]) {
|
||||
values[name] = options.get(name);
|
||||
}
|
||||
|
||||
const setValue = (newValues: Record<T, string>) => server.put<void>("options", newValues);
|
||||
return [
|
||||
values as Record<T, string>,
|
||||
setValue
|
||||
options.saveMany
|
||||
] as const;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user