Skip to content

Commit 80c2f58

Browse files
authored
Fix retryCondition error.
Previously, the full baseQueryResult was passed into the `error` argument. This should fix it to only pass `error` in.
1 parent 7611078 commit 80c2f58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/toolkit/src/query/retry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ const retryWithBackoff: BaseQueryEnhancer<
124124

125125
if (
126126
e instanceof HandledError &&
127-
!options.retryCondition(e.value as FetchBaseQueryError, args, {
127+
!options.retryCondition(e.value.error as FetchBaseQueryError, args, {
128128
attempt: retry,
129129
baseQueryApi: api,
130130
extraOptions,

0 commit comments

Comments
 (0)