fix: 仪表板报错

This commit is contained in:
fit2cloud-chenyw 2023-12-28 14:52:50 +08:00
parent 1a30b2e8fe
commit 7173b53d16

View File

@ -587,14 +587,14 @@ export default {
result.relationFilterIds = matchFilters.map(item => item.id)
let matchViewIds = []
matchFilters.forEach(item => {
for (let index = 0; index < matchFilters.length; index++) {
const item = matchFilters[index]
if (!item.options.attrs.viewIds?.length) {
matchViewIds = null
return false
break
}
matchViewIds = matchViewIds.concat(item.options.attrs.viewIds)
})
}
let viewKeyMap = buildViewKeyMap(panelItems)
if (matchViewIds) {
matchViewIds = [...new Set(matchViewIds)]