Dedicated event for model creation

This commit is contained in:
Gregory Schier
2023-03-30 16:49:49 -07:00
parent ae949f4616
commit 7c2611a5a7
5 changed files with 67 additions and 34 deletions

View File

@@ -8,7 +8,6 @@ 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 });
},