diff --git a/src/Utils/request/useQuery.ts b/src/Utils/request/useQuery.ts index b80d7c52a13..7c474c447ea 100644 --- a/src/Utils/request/useQuery.ts +++ b/src/Utils/request/useQuery.ts @@ -31,7 +31,7 @@ export default function useQuery( : overrides ?? options; setLoading(true); - const response = await request(route, resolvedOptions); + const response = await request(route, { ...resolvedOptions, controller }); setResponse(response); setLoading(false); return response;