Merge pull request #15611 from Budibase/fix/automation-traversal
Fix for automation traversal
This commit is contained in:
commit
8db13bfb32
|
@ -484,7 +484,7 @@ const automationActions = (store: AutomationStore) => ({
|
|||
branches.forEach((branch, bIdx) => {
|
||||
children[branch.id].forEach(
|
||||
(bBlock: AutomationStep, sIdx: number, array: AutomationStep[]) => {
|
||||
const ended = array.length - 1 === sIdx && !branches.length
|
||||
const ended = array.length - 1 === sIdx
|
||||
treeTraverse(bBlock, pathToCurrentNode, sIdx, bIdx, ended)
|
||||
}
|
||||
)
|
||||
|
@ -505,7 +505,6 @@ const automationActions = (store: AutomationStore) => ({
|
|||
blocks.forEach((block, idx, array) => {
|
||||
treeTraverse(block, null, idx, null, array.length - 1 === idx)
|
||||
})
|
||||
|
||||
return blockRefs
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue