mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-20 16:43:53 +01:00
Beginnings of autocomplete for headers
This commit is contained in:
@@ -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 ?? []
|
||||
|
||||
Reference in New Issue
Block a user