Skip to content

Commit 2233606

Browse files
committed
improvement(snapshot): show subblocks for trigger only blocks in frozen canvas
1 parent debcd76 commit 2233606

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/sim/app/workspace/[workspaceId]/w/components/preview/components/block-details-sidebar.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)