File tree Expand file tree Collapse file tree
apps/sim/app/workspace/[workspaceId]/w/[workflowId] Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2020,11 +2020,11 @@ const WorkflowContent = React.memo(
20202020 const name = getUniqueBlockName ( baseName , blocks )
20212021
20222022 if ( containerInfo ) {
2023- // Check if this is a trigger block or has trigger mode enabled
2023+ // Only reject blocks that will actually be triggers: pure trigger blocks
2024+ // and explicit trigger-mode drops. A dual-mode block (e.g. Gmail) added
2025+ // without trigger mode is an ordinary block and is valid in a subflow.
20242026 const isTriggerBlock =
2025- blockConfig . category === 'triggers' ||
2026- blockConfig . triggers ?. enabled ||
2027- data . enableTriggerMode === true
2027+ blockConfig . category === 'triggers' || data . enableTriggerMode === true
20282028
20292029 if ( isTriggerBlock ) {
20302030 toast . error ( 'Triggers cannot be placed inside loop or parallel subflows.' )
You can’t perform that action at this time.
0 commit comments