Skip to content

Commit bddbde0

Browse files
committed
Fixed array validation again.
1 parent 8dc09a4 commit bddbde0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2075,7 +2075,7 @@ exports.validate_builder = function(model, error, schema, collection, path, inde
20752075

20762076
result = TYPE.validate ? TYPE.validate(value, model) : prepare(name, value, current + name, model, schema, TYPE);
20772077
if (result == null) {
2078-
result = value[j] instanceof Array ? value[j].length > 0 : false;
2078+
result = value instanceof Array ? value.length > 0 : false;
20792079
if (result == null || result === true)
20802080
continue;
20812081
}

0 commit comments

Comments
 (0)