File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -462,7 +462,7 @@ async function makeRequest<T = any, V extends Variables = Variables>({
462
462
middleware ?: RequestMiddleware < V >
463
463
} ) : Promise < Response < T > > {
464
464
const fetcher = method . toUpperCase ( ) === 'POST' ? post : get
465
- const isBathchingQuery = Array . isArray ( query )
465
+ const isBatchingQuery = Array . isArray ( query )
466
466
467
467
const response = await fetcher ( {
468
468
url,
@@ -477,7 +477,7 @@ async function makeRequest<T = any, V extends Variables = Variables>({
477
477
const result = await getResult ( response , fetchOptions . jsonSerializer )
478
478
479
479
const successfullyReceivedData =
480
- isBathchingQuery && Array . isArray ( result ) ? ! result . some ( ( { data } ) => ! data ) : ! ! result . data
480
+ isBatchingQuery && Array . isArray ( result ) ? ! result . some ( ( { data } ) => ! data ) : ! ! result . data
481
481
482
482
const successfullyPassedErrorPolicy =
483
483
! result . errors || fetchOptions . errorPolicy === 'all' || fetchOptions . errorPolicy === 'ignore'
@@ -489,7 +489,7 @@ async function makeRequest<T = any, V extends Variables = Variables>({
489
489
const data = fetchOptions . errorPolicy === 'ignore' ? rest : result
490
490
491
491
return {
492
- ...( isBathchingQuery ? { data } : data ) ,
492
+ ...( isBatchingQuery ? { data } : data ) ,
493
493
headers,
494
494
status,
495
495
}
You can’t perform that action at this time.
0 commit comments