forked from github/dataease
fix: tabs初始化条件报错
This commit is contained in:
parent
527f5daac2
commit
1072f14204
@ -52,7 +52,7 @@
|
||||
:is-edit="isEdit"
|
||||
:active="active"
|
||||
:element="item.content"
|
||||
:filters="filterMap[item.content.propValue && item.content.propValue.viewId]"
|
||||
:filters="filterMap[item.content.propValue && item.content.propValue.viewId] || []"
|
||||
:out-style="outStyle"
|
||||
/>
|
||||
</div>
|
||||
|
@ -48,7 +48,9 @@ export const buildFilterMap = panelItems => {
|
||||
}
|
||||
if (element.type === 'de-tabs') {
|
||||
element.options.tabList && element.options.tabList.forEach(tab => {
|
||||
result[tab.content.propValue.viewId] = []
|
||||
if (tab.content.propValue && tab.content.propValue.viewId) {
|
||||
result[tab.content.propValue.viewId] = []
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user