mirror of
https://github.com/dataease/dataease.git
synced 2025-02-24 19:42:56 +08:00
commit
946801a658
@ -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