2π
β
yes error response was 404 so there is not error
attribute in response so you can not add it to if condition.
so to next time if you want to debug it you can use console
.catch(error => {
this.errors = [];
// you can debug it
console.log(error);
});
example
// this will come from the ajax
var error = {
data :{
'error' : 'some data we can see it in console'
}
}
console.log(error);
π€Hardik Satasiya
Source:stackexchange.com