Merge pull request #12293 from Budibase/budi-7736-relationship-picker-required-validation-fires-immediately
Don't trigger required validation early
This commit is contained in:
commit
3b5a9e0057
|
@ -137,7 +137,9 @@
|
||||||
typeof value === "object" ? value._id : value
|
typeof value === "object" ? value._id : value
|
||||||
)
|
)
|
||||||
// Make sure field state is valid
|
// Make sure field state is valid
|
||||||
|
if (values?.length > 0) {
|
||||||
fieldApi.setValue(values)
|
fieldApi.setValue(values)
|
||||||
|
}
|
||||||
return values
|
return values
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue