1
0
Fork 0
mirror of synced 2024-10-04 03:54:37 +13:00

Merge pull request #9244 from Budibase/fix/looping-issue

Fix looping issue with subsequent loop steps
This commit is contained in:
Peter Clement 2023-01-05 15:56:00 +00:00 committed by GitHub
commit 496b140081

View file

@ -419,7 +419,7 @@ class Orchestrator {
// Delete the step after the loop step as it's irrelevant, since information is included
// in the loop step
if (wasLoopStep) {
if (wasLoopStep && !loopStep) {
this._context.steps.splice(loopStepNumber + 1, 1)
wasLoopStep = false
}
@ -438,8 +438,8 @@ class Orchestrator {
})
this._context.steps[loopStepNumber] = tempOutput
loopSteps = undefined
wasLoopStep = true
loopSteps = []
}
}