Skip to content

Commit 830e143

Browse files
committed
fix(terminal): align parallel guard in WorkflowBlockHandler.getIterationContext with BlockExecutor
1 parent f4f293a commit 830e143

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/sim/executor/handlers/workflow/workflow-handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ export class WorkflowBlockHandler implements BlockHandler {
260260
isLoopNode?: boolean
261261
}
262262
): IterationContext | undefined {
263-
if (nodeMetadata.branchIndex !== undefined && nodeMetadata.parallelId !== undefined) {
263+
if (nodeMetadata.branchIndex !== undefined && nodeMetadata.branchTotal !== undefined) {
264264
return {
265265
iterationCurrent: nodeMetadata.branchIndex,
266266
iterationTotal: nodeMetadata.branchTotal,

0 commit comments

Comments
 (0)