Updating environments!

This commit is contained in:
Gregory Schier
2023-10-22 22:06:51 -07:00
parent 5cf59d7d70
commit 51f48d3883
12 changed files with 155 additions and 52 deletions

View File

@@ -10,7 +10,7 @@ export function workspacesQueryKey(_?: {}) {
export function useWorkspaces() {
return (
useQuery(workspacesQueryKey(), async () => {
return (await invoke('workspaces')) as Workspace[];
return (await invoke('list_workspaces')) as Workspace[];
}).data ?? []
);
}