fix(assigned field):dynamic value validation error when assigned field (#2117)

This commit is contained in:
katherinehhh 2023-06-29 08:04:09 +08:00 committed by GitHub
parent d71fed0471
commit d9902a4055
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -158,6 +158,10 @@ export const AssignedField = (props: any) => {
const typeChangeHandler = (val) => { const typeChangeHandler = (val) => {
setType(val); setType(val);
if (val === AssignedFieldValueType.DynamicValue) {
field.validator = null;
field.form.clearErrors();
}
}; };
const valueChangeHandler = (val) => { const valueChangeHandler = (val) => {