From ed18d8b5eefa349e5d8232f7023a5b2d27910539 Mon Sep 17 00:00:00 2001 From: Lykin <137850705+tiny-craft@users.noreply.github.com> Date: Fri, 5 Jan 2024 00:04:28 +0800 Subject: [PATCH] fix: disable nested folders in connections pane --- frontend/src/components/sidebar/ConnectionTree.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/components/sidebar/ConnectionTree.vue b/frontend/src/components/sidebar/ConnectionTree.vue index 4aa8a46..a83e28c 100644 --- a/frontend/src/components/sidebar/ConnectionTree.vue +++ b/frontend/src/components/sidebar/ConnectionTree.vue @@ -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) {