File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
apps/sim/app/workspace/[workspaceId]/w/components/preview/components Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1124,7 +1124,9 @@ function BlockDetailsSidebarContent({
11241124
11251125 const visibleSubBlocks = blockConfig . subBlocks . filter ( ( subBlock ) => {
11261126 if ( subBlock . hidden || subBlock . hideFromPreview ) return false
1127- if ( subBlock . mode === 'trigger' ) return false
1127+ // Only filter out trigger-mode subblocks for non-trigger blocks
1128+ // Trigger-only blocks (category 'triggers') should display their trigger subblocks
1129+ if ( subBlock . mode === 'trigger' && blockConfig . category !== 'triggers' ) return false
11281130 if ( subBlock . condition ) {
11291131 return evaluateCondition ( subBlock . condition , subBlockValues )
11301132 }
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ function WorkflowPreviewBlockInner({ data }: NodeProps<WorkflowPreviewBlockData>
4646 return blockConfig . subBlocks . filter ( ( subBlock ) => {
4747 if ( subBlock . hidden ) return false
4848 if ( subBlock . hideFromPreview ) return false
49- if ( subBlock . mode === 'trigger' ) return false
49+ if ( subBlock . mode === 'trigger' && blockConfig . category !== 'triggers' ) return false
5050 if ( subBlock . mode === 'advanced' ) return false
5151 return true
5252 } )
You can’t perform that action at this time.
0 commit comments