Fix error handling in dashboard
This commit is contained in:
parent
f971cdf9ca
commit
e5e66fdb58
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@
|
||||||
console.error(err);
|
console.error(err);
|
||||||
const response = err.response;
|
const response = err.response;
|
||||||
if (response.data && _.isObject(response.data.errors)) {
|
if (response.data && _.isObject(response.data.errors)) {
|
||||||
response.data.errors.forEach(function (error) {
|
response.data.errors.forEach(error => {
|
||||||
this.error(error.detail);
|
this.error(error.detail);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue