Skip to content

Commit 187af53

Browse files
authored
fix: added all blocks activeExecutionPath (#486)
1 parent b5dc560 commit 187af53

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

apps/sim/executor/path.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,13 +180,13 @@ export class PathTracker {
180180

181181
context.decisions.condition.set(block.id, selectedConditionId)
182182

183-
const targetConnection = this.workflow.connections.find(
183+
const targetConnections = this.workflow.connections.filter(
184184
(conn) => conn.source === block.id && conn.sourceHandle === `condition-${selectedConditionId}`
185185
)
186186

187-
if (targetConnection) {
188-
context.activeExecutionPath.add(targetConnection.target)
189-
logger.debug(`Condition ${block.id} selected: ${selectedConditionId}`)
187+
for (const conn of targetConnections) {
188+
context.activeExecutionPath.add(conn.target)
189+
logger.debug(`Condition ${block.id} activated path to: ${conn.target}`)
190190
}
191191
}
192192

0 commit comments

Comments
 (0)