Merge pull request #7448 from dataease/pr@dev@fix_panel_error

fix: 仪表板报错
This commit is contained in:
fit2cloud-chenyw 2023-12-28 14:54:01 +08:00 committed by GitHub
commit b5084614d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)]