Make property reactive
This commit is contained in:
@@ -124,7 +124,7 @@
|
||||
const violations = error.response.data.violations;
|
||||
if (typeof violations !== 'undefined') {
|
||||
for (let violation of violations) {
|
||||
this.formErrors[violation.property_path] = violation.message;
|
||||
this.$set(this.formErrors, violation.property_path, violation.message);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -95,7 +95,7 @@
|
||||
}).catch(error => {
|
||||
const violations = error.response.data.violations;
|
||||
for (let violation of violations) {
|
||||
this.formErrors[violation.property_path] = violation.message;
|
||||
this.$set(this.formErrors, violation.property_path, violation.message);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user