Client - fix error message when api is not running
This commit is contained in:
parent
fd927beac7
commit
41eb11bbcc
@ -34,7 +34,7 @@ authApi.interceptors.response.use(
|
|||||||
return response
|
return response
|
||||||
},
|
},
|
||||||
(error) => {
|
(error) => {
|
||||||
if (error.message !== 'canceled') {
|
if (error.message !== 'canceled' && error.response) {
|
||||||
removeRequestIfPending(error.response.config)
|
removeRequestIfPending(error.response.config)
|
||||||
}
|
}
|
||||||
return Promise.reject(error)
|
return Promise.reject(error)
|
||||||
|
@ -24,7 +24,7 @@ api.interceptors.response.use(
|
|||||||
return response
|
return response
|
||||||
},
|
},
|
||||||
(error) => {
|
(error) => {
|
||||||
if (error.message !== 'canceled') {
|
if (error.message !== 'canceled' && error.response) {
|
||||||
removeRequestIfPending(error.response.config)
|
removeRequestIfPending(error.response.config)
|
||||||
}
|
}
|
||||||
return Promise.reject(error)
|
return Promise.reject(error)
|
||||||
|
Loading…
Reference in New Issue
Block a user