Skip to content

Commit

Permalink
fix(lib): 修复 match anyOf option未重新retrieve schema 导致无法正确match index的问题
Browse files Browse the repository at this point in the history
fix #317
  • Loading branch information
Jino Liu committed Aug 4, 2023
1 parent 35d20b5 commit 44dd77b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/lib/utils/schema/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ export function getMatchingIndex(formData, options, rootSchema, haveAllFields =
if (isValid(augmentedSchema, formData)) {
return i;
}
} else if (isValid(options[i], formData)) {
} else if (isValid(option, formData)) {
return i;
}
}
Expand Down

0 comments on commit 44dd77b

Please sign in to comment.