Merge pull request #7113 from Budibase/bug/sev3/options-picker-set-value-relationship-picker
Options picker set value for relationship picker - handle non-array values
This commit is contained in:
commit
9bc7f400ef
|
@ -55,6 +55,9 @@
|
|||
if (!values) {
|
||||
return []
|
||||
}
|
||||
if (!Array.isArray(values)) {
|
||||
values = [values]
|
||||
}
|
||||
return values.map(value => (typeof value === "object" ? value._id : value))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue