Merge pull request #761 from 1Panel-dev/repr@main_release-1.3@fix_github_753
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run

fix: 修复判断器删除其中一个条件后,前端序号未更新的缺陷
This commit is contained in:
wxg0103 2024-07-15 15:30:07 +08:00 committed by GitHub
commit 7660c8f7f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)
}