Skip to content

Commit 0bc7b57

Browse files
committed
Merge branch 'master' into production
2 parents 5fcaea2 + c8bf515 commit 0bc7b57

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/formGenerator.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ export default {
247247
248248
this.errors.push({
249249
field: child.field,
250-
error: error[0]
250+
error: errors[0]
251251
})
252252
}
253253
}.bind(this))
@@ -263,6 +263,7 @@ export default {
263263
264264
/** Validate one or more model properties */
265265
validateModelField (model) {
266+
if (!model) return
266267
/** Determine if the child can and should be validated. */
267268
const toValidate = (child) => isFunction(child.validate) && model.includes(child.field.model)
268269

0 commit comments

Comments
 (0)