1
0
mirror of https://github.com/tiny-craft/tiny-rdm.git synced 2025-05-16 18:58:05 +08:00

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

@ -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) {