Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2020,11 +2020,11 @@ const WorkflowContent = React.memo(
const name = getUniqueBlockName(baseName, blocks)

if (containerInfo) {
// Check if this is a trigger block or has trigger mode enabled
// Only reject blocks that will actually be triggers: pure trigger blocks
// and explicit trigger-mode drops. A dual-mode block (e.g. Gmail) added
// without trigger mode is an ordinary block and is valid in a subflow.
const isTriggerBlock =
blockConfig.category === 'triggers' ||
blockConfig.triggers?.enabled ||
data.enableTriggerMode === true
blockConfig.category === 'triggers' || data.enableTriggerMode === true

if (isTriggerBlock) {
toast.error('Triggers cannot be placed inside loop or parallel subflows.')
Expand Down
Loading