Added offset for loop automation context updates. The error cases and feedback were displaying in the wrong steps.
This commit is contained in:
parent
80526ad9b7
commit
23a3643859
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue