Skip to content

Commit a5ca97a

Browse files
wxg0103shaohuzhang1
authored andcommitted
fix: 修复判断器删除其中一个条件后,前端序号未更新的缺陷
#753 (cherry picked from commit 1eace87)
1 parent 601d19d commit a5ca97a

File tree

1 file changed

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

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,12 @@ function deleteCondition(index: number, cIndex: number) {
277277
.map((item: any) => item.id)
278278
)
279279
refreshBranchAnchor(list, false)
280+
281+
list.forEach((item: any, index: number) => {
282+
if (item.type === 'ELSE IF ' + (index + 1)) {
283+
item.type = 'ELSE IF ' + index
284+
}
285+
})
280286
}
281287
set(props.nodeModel.properties.node_data, 'branch', list)
282288
}

0 commit comments

Comments
 (0)