diff --git a/ui/src/workflow/nodes/condition-node/index.vue b/ui/src/workflow/nodes/condition-node/index.vue index 4d513a7f2..8bf5b18e6 100644 --- a/ui/src/workflow/nodes/condition-node/index.vue +++ b/ui/src/workflow/nodes/condition-node/index.vue @@ -277,6 +277,12 @@ function deleteCondition(index: number, cIndex: number) { .map((item: any) => item.id) ) refreshBranchAnchor(list, false) + + list.forEach((item: any, index: number) => { + if (item.type === 'ELSE IF ' + (index + 1)) { + item.type = 'ELSE IF ' + index + } + }) } set(props.nodeModel.properties.node_data, 'branch', list) }