Skip to content

Commit 44dd77b

Browse files
fix(lib): 修复 match anyOf option未重新retrieve schema 导致无法正确match index的问题
fix #317
1 parent 35d20b5 commit 44dd77b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/lib/utils/schema/validate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ export function getMatchingIndex(formData, options, rootSchema, haveAllFields =
305305
if (isValid(augmentedSchema, formData)) {
306306
return i;
307307
}
308-
} else if (isValid(options[i], formData)) {
308+
} else if (isValid(option, formData)) {
309309
return i;
310310
}
311311
}

0 commit comments

Comments
 (0)