fix: 修复工作流多路召回节点检索问题下拉框中有多个重复节点
This commit is contained in:
parent
8b71e031d3
commit
cfbec5c44c
@ -59,6 +59,7 @@ function _getIncomingNode(id: String, startId: String, value: Array<any>) {
|
|||||||
if (list.length > 0) {
|
if (list.length > 0) {
|
||||||
list.forEach((item: any) => {
|
list.forEach((item: any) => {
|
||||||
if (!value.some((obj: any) => obj.id === item.id)) {
|
if (!value.some((obj: any) => obj.id === item.id)) {
|
||||||
|
if (!value.some((value_item) => value_item.value === item.id)) {
|
||||||
value.unshift({
|
value.unshift({
|
||||||
value: item.id,
|
value: item.id,
|
||||||
label: item.properties.stepName,
|
label: item.properties.stepName,
|
||||||
@ -74,6 +75,7 @@ function _getIncomingNode(id: String, startId: String, value: Array<any>) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
list.forEach((item: any) => {
|
list.forEach((item: any) => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user