Added offset for loop automation context updates. The error cases and feedback were displaying in the wrong steps.

This commit is contained in:
Dean 2024-11-05 16:05:35 +00:00
parent 80526ad9b7
commit 23a3643859
1 changed files with 3 additions and 3 deletions

View File

@ -400,7 +400,7 @@ class Orchestrator {
)
} catch (err) {
this.updateContextAndOutput(
pathStepIdx,
pathStepIdx + 1,
steps[stepToLoopIndex],
{},
{
@ -420,7 +420,7 @@ class Orchestrator {
(loopStep.inputs.iterations && loopStepIndex === maxIterations)
) {
this.updateContextAndOutput(
pathStepIdx,
pathStepIdx + 1,
steps[stepToLoopIndex],
{
items: this.loopStepOutputs,
@ -447,7 +447,7 @@ class Orchestrator {
if (isFailure) {
this.updateContextAndOutput(
pathStepIdx,
pathStepIdx + 1,
steps[stepToLoopIndex],
{
items: this.loopStepOutputs,