Skip to content

Commit 4e90ea0

Browse files
authored
Merge pull request #2 from kevinkosterr/master
fix(vfg): includes is not a function of undefined in validateModelField
2 parents 5fcaea2 + aa52e6b commit 4e90ea0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/formGenerator.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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)