Skip to content

Commit

Permalink
fix(projects): Repair return response
Browse files Browse the repository at this point in the history
  • Loading branch information
paynezhuang committed Nov 10, 2024
1 parent 54cbb6c commit 3744f86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/axios/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export function createFlatRequest<ResponseData = any, State = Record<string, unk
return { data, error: null, response };
}

return { data: response.data as MappedType<R, T>, error: null };
return { data: response.data as MappedType<R, T>, error: null, response };
} catch (error) {
return { data: null, error, response: (error as AxiosError<ResponseData>).response };
}
Expand Down

0 comments on commit 3744f86

Please sign in to comment.