GraphQL autocomplete and duplicate request

This commit is contained in:
Gregory Schier
2023-03-21 23:54:45 -07:00
parent abc60667c6
commit c7738743c5
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 });
},