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