GraphQL autocomplete and duplicate request

This commit is contained in:
Gregory Schier
2023-03-21 23:54:45 -07:00
parent 9b8961c23d
commit 168dfb9f6b
31 changed files with 299 additions and 157 deletions

View File

@@ -8,6 +8,7 @@ export function useDeleteRequest(id: string | null) {
const queryClient = useQueryClient();
return useMutation<void, string>({
mutationFn: async () => {
console.log('DELETE REQUEST2', id, workspaceId);
if (id === null) return;
await invoke('delete_request', { requestId: id });
},