File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
apps/sim/app/workspace/[workspaceId]/w/components/preview Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff 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'
You can’t perform that action at this time.
0 commit comments