From 675d2366da77346e86dad3d2ceccbc3ae37ef96b Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud <79562285+wangdan-fit2cloud@users.noreply.github.com> Date: Wed, 9 Apr 2025 11:52:54 +0800 Subject: [PATCH] fix: condition node supports drag and drop --- ui/src/workflow/nodes/condition-node/index.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/src/workflow/nodes/condition-node/index.vue b/ui/src/workflow/nodes/condition-node/index.vue index 9816ddbd2..c76844bef 100644 --- a/ui/src/workflow/nodes/condition-node/index.vue +++ b/ui/src/workflow/nodes/condition-node/index.vue @@ -248,6 +248,9 @@ function onEnd(event?: any) { if (oldIndex === undefined || newIndex === undefined) return const list = cloneDeep(props.nodeModel.properties.node_data.branch) if (oldIndex === list.length - 1 || newIndex === list.length - 1) { + list[newIndex] = list[oldIndex] + list[oldIndex] = clonedData + set(props.nodeModel.properties.node_data, 'branch', list) return } list[newIndex].type = list[oldIndex].type