Don't trigger required validation early

This commit is contained in:
Mel O'Hagan 2023-11-06 13:56:31 +00:00
parent ce6de27714
commit 6ee7ae953d
1 changed files with 3 additions and 1 deletions

View File

@ -137,7 +137,9 @@
typeof value === "object" ? value._id : value
)
// Make sure field state is valid
if (values?.length > 0) {
fieldApi.setValue(values)
}
return values
}