Skip to content

Commit 60c0b9e

Browse files
committed
more
1 parent 48527b1 commit 60c0b9e

File tree

1 file changed

+10
-2
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/components/preview

1 file changed

+10
-2
lines changed

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,13 @@ export function WorkflowPreview({
269269
if (executedBlocks) {
270270
const blockExecution = executedBlocks[blockId]
271271
if (blockExecution) {
272-
executionStatus = blockExecution.status === 'error' ? 'error' : 'success'
272+
if (blockExecution.status === 'error') {
273+
executionStatus = 'error'
274+
} else if (blockExecution.status === 'success') {
275+
executionStatus = 'success'
276+
} else {
277+
executionStatus = 'not-executed'
278+
}
273279
} else {
274280
executionStatus = 'not-executed'
275281
}
@@ -321,8 +327,10 @@ export function WorkflowPreview({
321327
if (sourceExecuted && targetExecuted) {
322328
if (targetExecuted.status === 'error') {
323329
executionStatus = 'error'
324-
} else {
330+
} else if (sourceExecuted.status === 'success' && targetExecuted.status === 'success') {
325331
executionStatus = 'success'
332+
} else {
333+
executionStatus = 'not-executed'
326334
}
327335
} else {
328336
executionStatus = 'not-executed'

0 commit comments

Comments
 (0)