Skip to content

Commit

Permalink
console logging
Browse files Browse the repository at this point in the history
  • Loading branch information
KelvinTegelaar committed Apr 14, 2024
1 parent c36b6c3 commit fd2da90
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/store/api/baseQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,11 @@ export const axiosQuery = async ({ path, method = 'get', params, data, hideToast
const shouldRetry = (error, path) => {
// Check if the path starts with 'List', error qualifies for a retry, and payload message is 'Backend call failure'
return (
console.log(path),
path.startsWith('/list') &&
error.response &&
error.response.status >= 500 &&
error.response.data === 'Backend call failure'
error.response &&
error.response.status >= 500 &&
error.response.data === 'Backend call failure'
)
}

Expand Down

0 comments on commit fd2da90

Please sign in to comment.