some console errors fixed

This commit is contained in:
Burak Civan
2022-10-18 11:35:25 +03:00
parent 3faf578bd4
commit 7f4f376252
3 changed files with 11 additions and 7 deletions

View File

@ -493,7 +493,9 @@ export default class Form {
// Form fields check validation issue
onFail(error) {
this.errors.record(error.response.data.errors);
if (typeof this.errors != "undefined") {
this.errors.record(error.response.data.errors);
}
this.loading = false;
}