fix: 字段参数不能为空

This commit is contained in:
dataeaseShu 2023-12-05 10:56:06 +08:00
parent 550f40e358
commit 7cf02e77ca

View File

@ -389,13 +389,9 @@ const init = (queryId: string) => {
})
.filter(ele => !!ele)
}
getDsDetails([
...new Set(
datasetFieldList.value
.map(ele => ele.tableId)
.filter(ele => !datasetMapKeyList.includes(ele) && ele)
)
])
const params = [...new Set(datasetFieldList.value.map(ele => ele.tableId).filter(ele => !!ele))]
if (!params.length) return
getDsDetails(params)
.then(res => {
res
.filter(ele => !!ele)