Merge pull request #761 from 1Panel-dev/repr@main_release-1.3@fix_github_753
fix: 修复判断器删除其中一个条件后,前端序号未更新的缺陷
This commit is contained in:
commit
7660c8f7f0
@ -277,6 +277,12 @@ function deleteCondition(index: number, cIndex: number) {
|
|||||||
.map((item: any) => item.id)
|
.map((item: any) => item.id)
|
||||||
)
|
)
|
||||||
refreshBranchAnchor(list, false)
|
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)
|
set(props.nodeModel.properties.node_data, 'branch', list)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user