fix: disable nested folders in connections pane

This commit is contained in:
Lykin 2024-01-05 00:04:28 +08:00
parent e071e65701
commit ed18d8b5ee
1 changed files with 3 additions and 0 deletions

View File

@ -447,6 +447,9 @@ const handleDrop = ({ node, dragNode, dropPosition }) => {
if (dragNodeSiblings === null || dragNodeIndex === null) {
return
}
if (node.type === ConnectionType.Group && dragNode.type === ConnectionType.Group) {
return
}
dragNodeSiblings.splice(dragNodeIndex, 1)
if (dropPosition === 'inside') {
if (node.children) {