Merge pull request #6068 from Budibase/bug/sev3/error-when-changing-between-values-bindings-in-automations
Make sure linkedRows is an array before map
This commit is contained in:
commit
db4092fbe2
|
@ -8,7 +8,9 @@
|
||||||
export let linkedRows = []
|
export let linkedRows = []
|
||||||
|
|
||||||
let rows = []
|
let rows = []
|
||||||
let linkedIds = (linkedRows || [])?.map(row => row?._id || row)
|
let linkedIds = (Array.isArray(linkedRows) ? linkedRows : [])?.map(
|
||||||
|
row => row?._id || row
|
||||||
|
)
|
||||||
|
|
||||||
$: linkedRows = linkedIds
|
$: linkedRows = linkedIds
|
||||||
$: label = capitalise(schema.name)
|
$: label = capitalise(schema.name)
|
||||||
|
|
Loading…
Reference in New Issue