Make property reactive

This commit is contained in:
Björn Fromme
2019-10-02 16:22:25 +02:00
parent b1359611a6
commit 3c32cfc05b
2 changed files with 2 additions and 2 deletions
@@ -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);
}
});
}