Merge pull request #7448 from dataease/pr@dev@fix_panel_error
fix: 仪表板报错
This commit is contained in:
commit
b5084614d6
@ -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)]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user