Skip to content

Commit

Permalink
Update lib/types/array.js
Browse files Browse the repository at this point in the history
continue if ordered is required

Co-authored-by: Brian Le <[email protected]>
  • Loading branch information
iifawzi and brianle1301 authored Feb 3, 2021
1 parent 8748a95 commit 2193d16
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/types/array.js
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,7 @@ internals.checkRemainingOrdereds = function (schema, errors, ordereds, value, st
for (const ordered of ordereds) {
if (ordered._flags.presence === 'required') {
requiredOrdereds.push(ordered);
continue;
}

const res = ordered.$_validate(undefined,state,prefs);
Expand Down

0 comments on commit 2193d16

Please sign in to comment.