We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95b9ca4 commit 0fb084bCopy full SHA for 0fb084b
apps/sim/app/workspace/[workspaceId]/w/[workflowId]/workflow.tsx
@@ -579,8 +579,10 @@ const WorkflowContent = React.memo(() => {
579
const node = nodeIndex.get(id)
580
if (!node) return false
581
582
- // If dropping outside containers, ignore blocks that are inside a container
583
- if (!containerAtPoint && blocks[id]?.data?.parentId) return false
+ const blockParentId = blocks[id]?.data?.parentId
+ const dropParentId = containerAtPoint?.loopId
584
+ if (dropParentId !== blockParentId) return false
585
+
586
return true
587
})
588
.map(([id, block]) => {
0 commit comments