fix(数据集): 数据集查询优化

This commit is contained in:
dataeaseShu 2024-04-18 17:31:01 +08:00
parent 49c6ce1b02
commit d73456c01f

View File

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