Skip to content

Commit 675d236

Browse files
fix: condition node supports drag and drop
1 parent bbb63a5 commit 675d236

File tree

1 file changed

+3
-0
lines changed
  • ui/src/workflow/nodes/condition-node

1 file changed

+3
-0
lines changed

ui/src/workflow/nodes/condition-node/index.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,9 @@ function onEnd(event?: any) {
248248
if (oldIndex === undefined || newIndex === undefined) return
249249
const list = cloneDeep(props.nodeModel.properties.node_data.branch)
250250
if (oldIndex === list.length - 1 || newIndex === list.length - 1) {
251+
list[newIndex] = list[oldIndex]
252+
list[oldIndex] = clonedData
253+
set(props.nodeModel.properties.node_data, 'branch', list)
251254
return
252255
}
253256
list[newIndex].type = list[oldIndex].type

0 commit comments

Comments
 (0)