forked from github/dataease
fix: 过滤组件在没有视图时报错
This commit is contained in:
parent
1bf8fe5dff
commit
abf0f7560c
@ -316,7 +316,7 @@ export default {
|
||||
const viewIds = this.componentData
|
||||
.filter(item => item.type === 'view' && item.propValue && item.propValue.viewId)
|
||||
.map(item => item.propValue.viewId)
|
||||
viewsWithIds(viewIds).then(res => {
|
||||
viewIds && viewIds.length > 0 && viewsWithIds(viewIds).then(res => {
|
||||
const datas = res.data
|
||||
this.viewInfos = datas
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user