Skip to content

Commit cd88279

Browse files
committed
fix(executor): resolve block ID for parallel subflow active state
1 parent 5b0532d commit cd88279

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/sim/executor/execution/block-executor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ export class BlockExecutor {
428428
block: SerializedBlock,
429429
executionOrder: number
430430
): void {
431-
const blockId = node.id
431+
const blockId = node.metadata?.originalBlockId ?? node.id
432432
const blockName = block.metadata?.name ?? blockId
433433
const blockType = block.metadata?.id ?? DEFAULTS.BLOCK_TYPE
434434

@@ -456,7 +456,7 @@ export class BlockExecutor {
456456
executionOrder: number,
457457
endedAt: string
458458
): void {
459-
const blockId = node.id
459+
const blockId = node.metadata?.originalBlockId ?? node.id
460460
const blockName = block.metadata?.name ?? blockId
461461
const blockType = block.metadata?.id ?? DEFAULTS.BLOCK_TYPE
462462

0 commit comments

Comments
 (0)