This commit is contained in:
Forms Dev
2023-11-17 16:25:10 +05:30
parent 8e8bad3754
commit 5bc4b866c4
4 changed files with 170 additions and 159 deletions

View File

@@ -21,7 +21,7 @@ export default {
},
computed: {
errorMessage () {
if (!this.form.errors || !this.form.errors.any()) return null
if (!this.form || !this.form.errors || !this.form.errors.any()) return null
const subErrorsKeys = Object.keys(this.form.errors.all()).filter((key) => {
return key.startsWith(this.field) && key !== this.field
})