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