Merge pull request #15279 from Budibase/fix-automation-testing
Automation test details fix
This commit is contained in:
commit
257d651161
|
@ -291,8 +291,8 @@ const automationActions = (store: AutomationStore) => ({
|
||||||
let result: (AutomationStep | AutomationTrigger)[] = []
|
let result: (AutomationStep | AutomationTrigger)[] = []
|
||||||
pathWay.forEach(path => {
|
pathWay.forEach(path => {
|
||||||
const { stepIdx, branchIdx } = path
|
const { stepIdx, branchIdx } = path
|
||||||
let last = result ? result[result.length - 1] : []
|
let last = result.length ? result[result.length - 1] : []
|
||||||
if (!result) {
|
if (!result.length) {
|
||||||
// Preceeding steps.
|
// Preceeding steps.
|
||||||
result = steps.slice(0, stepIdx + 1)
|
result = steps.slice(0, stepIdx + 1)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue