Make sure field state is valid (#11921)
This commit is contained in:
parent
6c9b3e33a3
commit
80d91cdd92
|
@ -121,7 +121,12 @@
|
|||
if (!Array.isArray(values)) {
|
||||
values = [values]
|
||||
}
|
||||
return values.map(value => (typeof value === "object" ? value._id : value))
|
||||
values = values.map(value =>
|
||||
typeof value === "object" ? value._id : value
|
||||
)
|
||||
// Make sure field state is valid
|
||||
fieldApi.setValue(values)
|
||||
return values
|
||||
}
|
||||
|
||||
const getDisplayName = row => {
|
||||
|
|
Loading…
Reference in New Issue