Skip to content

Commit 0168512

Browse files
committed
fix incomplete case
1 parent c6cb282 commit 0168512

File tree

1 file changed

+3
-0
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/components/preview/components/preview-workflow

1 file changed

+3
-0
lines changed

apps/sim/app/workspace/[workspaceId]/w/components/preview/components/preview-workflow/preview-workflow.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,9 @@ export function PreviewWorkflow({
458458
}): ExecutionStatus | undefined => {
459459
if (blockExecutionMap.size === 0) return undefined
460460

461+
const targetStatus = getBlockExecutionStatus(edge.target)
462+
if (!targetStatus?.executed) return 'not-executed'
463+
461464
const sourceStatus = getBlockExecutionStatus(edge.source)
462465
if (!sourceStatus?.executed) return 'not-executed'
463466

0 commit comments

Comments
 (0)