Add mutationKey everywhere

This commit is contained in:
Gregory Schier
2024-06-21 09:25:25 -07:00
parent 50e2ab3a03
commit cd9e720835
44 changed files with 67 additions and 26 deletions

View File

@@ -7,6 +7,7 @@ export function useDeleteRequest(id: string | null) {
const deleteAnyGrpcRequest = useDeleteAnyGrpcRequest();
return useMutation<void, string>({
mutationKey: ['delete_request', id],
mutationFn: async () => {
if (id == null) return;
// We don't know what type it is based on the ID, so just try deleting both