mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: 修复工作流多路召回节点检索问题下拉框中有多个重复节点
This commit is contained in:
parent
8b71e031d3
commit
cfbec5c44c
|
|
@ -59,18 +59,20 @@ function _getIncomingNode(id: String, startId: String, value: Array<any>) {
|
|||
if (list.length > 0) {
|
||||
list.forEach((item: any) => {
|
||||
if (!value.some((obj: any) => obj.id === item.id)) {
|
||||
value.unshift({
|
||||
value: item.id,
|
||||
label: item.properties.stepName,
|
||||
type: item.type,
|
||||
children: item.properties?.config?.fields || []
|
||||
})
|
||||
if (item.properties?.globalFields && item.type === 'start-node') {
|
||||
firstElement = {
|
||||
value: 'global',
|
||||
label: '全局变量',
|
||||
type: 'global',
|
||||
children: item.properties?.config?.globalFields || []
|
||||
if (!value.some((value_item) => value_item.value === item.id)) {
|
||||
value.unshift({
|
||||
value: item.id,
|
||||
label: item.properties.stepName,
|
||||
type: item.type,
|
||||
children: item.properties?.config?.fields || []
|
||||
})
|
||||
if (item.properties?.globalFields && item.type === 'start-node') {
|
||||
firstElement = {
|
||||
value: 'global',
|
||||
label: '全局变量',
|
||||
type: 'global',
|
||||
children: item.properties?.config?.globalFields || []
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue