File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
apps/sim/app/workspace/[workspaceId]/w/components/preview/components/preview-editor Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ import {
3737 isSubBlockFeatureEnabled ,
3838 isSubBlockVisibleForMode ,
3939} from '@/lib/workflows/subblocks/visibility'
40+ import { TriggerUtils } from '@/lib/workflows/triggers/triggers'
4041import { DELETED_WORKFLOW_LABEL } from '@/app/workspace/[workspaceId]/logs/utils'
4142import { SubBlock } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components'
4243import { PreviewContextMenu } from '@/app/workspace/[workspaceId]/w/components/preview/components/preview-context-menu'
@@ -1141,7 +1142,7 @@ function PreviewEditorContent({
11411142 hasAdvancedValues ( blockConfig . subBlocks , rawValues , canonicalIndex )
11421143
11431144 const isPureTriggerBlock = blockConfig . triggers ?. enabled && blockConfig . category === 'triggers'
1144- const effectiveTrigger = block . triggerMode === true || block . type === 'starter'
1145+ const effectiveTrigger = TriggerUtils . isTriggerBlock ( block )
11451146
11461147 const visibleSubBlocks = blockConfig . subBlocks . filter ( ( subBlock ) => {
11471148 if ( subBlock . hidden || subBlock . hideFromPreview ) return false
You can’t perform that action at this time.
0 commit comments