Beginnings of autocomplete for headers

This commit is contained in:
Gregory Schier committed 2023-03-17 16:51:20 -07:00
1 parent 10616001df
commit e33085a7b4
17 files changed
+155 -48

No files matched your search

-1
View File
@@ -6,7 +6,6 @@ import { useQuery } from '@tanstack/react-query';
export function useWorkspaces() {
return (
useQuery(['workspaces'], async () => {
console.log('INVOKING WORKSPACES');
const workspaces = (await invoke('workspaces')) as Workspace[];
return workspaces.map(convertDates);
}).data ?? []