fix: 修复工作流多路召回节点检索问题下拉框中有多个重复节点

This commit is contained in:
shaohuzhang1 2024-10-25 18:27:45 +08:00 committed by shaohuzhang1
parent 8b71e031d3
commit cfbec5c44c

View File

@ -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) => {