fix(数据集): 数据集查询优化
This commit is contained in:
parent
49c6ce1b02
commit
d73456c01f
@ -110,8 +110,8 @@ const dfsNodeNameList = (list, arr) => {
|
||||
|
||||
const dfsForDsId = (arr, datasourceId) => {
|
||||
return arr.every(ele => {
|
||||
if (arr.children?.length) {
|
||||
return dfsForDsId(arr.children, datasourceId)
|
||||
if (ele.children?.length) {
|
||||
return dfsForDsId(ele.children, datasourceId)
|
||||
}
|
||||
return ele.datasourceId === datasourceId || !ele.datasourceId
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user