We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5dc560 commit 187af53Copy full SHA for 187af53
1 file changed
apps/sim/executor/path.ts
@@ -180,13 +180,13 @@ export class PathTracker {
180
181
context.decisions.condition.set(block.id, selectedConditionId)
182
183
- const targetConnection = this.workflow.connections.find(
+ const targetConnections = this.workflow.connections.filter(
184
(conn) => conn.source === block.id && conn.sourceHandle === `condition-${selectedConditionId}`
185
)
186
187
- if (targetConnection) {
188
- context.activeExecutionPath.add(targetConnection.target)
189
- 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}`)
190
}
191
192
0 commit comments