mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-09 18:53:38 +02:00
Fix settings query store and analytics
This commit is contained in:
@@ -11,8 +11,9 @@ export function useSettings() {
|
||||
useQuery({
|
||||
queryKey: settingsQueryKey(),
|
||||
queryFn: async () => {
|
||||
return (await invoke('cmd_get_settings')) as Settings;
|
||||
const settings = (await invoke('cmd_get_settings')) as Settings;
|
||||
return [settings];
|
||||
},
|
||||
}).data ?? undefined
|
||||
}).data?.[0] ?? undefined
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user