Skip to content

Commit

Permalink
Merge pull request #15279 from Budibase/fix-automation-testing
Browse files Browse the repository at this point in the history
Automation test details fix
  • Loading branch information
aptkingston authored Jan 2, 2025
2 parents ad0e486 + b5e6e56 commit 257d651
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/builder/src/stores/builder/automations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,8 @@ const automationActions = (store: AutomationStore) => ({
let result: (AutomationStep | AutomationTrigger)[] = []
pathWay.forEach(path => {
const { stepIdx, branchIdx } = path
let last = result ? result[result.length - 1] : []
if (!result) {
let last = result.length ? result[result.length - 1] : []
if (!result.length) {
// Preceeding steps.
result = steps.slice(0, stepIdx + 1)
return
Expand Down

0 comments on commit 257d651

Please sign in to comment.