From 6af6e6e86b592f2b6632eeee25f34115a49ba94e Mon Sep 17 00:00:00 2001 From: Adam Gough Date: Thu, 12 Jun 2025 21:58:58 -0700 Subject: [PATCH] fix: added all blocks activeExecutionPath (#486) --- apps/sim/executor/path.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/sim/executor/path.ts b/apps/sim/executor/path.ts index 620d926ca9c..dcbfcfd490d 100644 --- a/apps/sim/executor/path.ts +++ b/apps/sim/executor/path.ts @@ -180,13 +180,13 @@ export class PathTracker { context.decisions.condition.set(block.id, selectedConditionId) - const targetConnection = this.workflow.connections.find( + const targetConnections = this.workflow.connections.filter( (conn) => conn.source === block.id && conn.sourceHandle === `condition-${selectedConditionId}` ) - if (targetConnection) { - context.activeExecutionPath.add(targetConnection.target) - logger.debug(`Condition ${block.id} selected: ${selectedConditionId}`) + for (const conn of targetConnections) { + context.activeExecutionPath.add(conn.target) + logger.debug(`Condition ${block.id} activated path to: ${conn.target}`) } }