Merge pull request #1837 from dataease/pr@v1.8@fix_tab_add_error

fix: tab新增失败
This commit is contained in:
fit2cloud-chenyw 2022-02-28 11:06:14 +08:00 committed by GitHub
commit fd29acfa6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,7 @@ export const buildFilterMap = panelItems => {
}
if (element.type === 'de-tabs') {
element.options.tabList && element.options.tabList.forEach(tab => {
if (tab.content.propValue && tab.content.propValue.viewId) {
if (tab.content && tab.content.propValue && tab.content.propValue.viewId) {
result[tab.content.propValue.viewId] = []
}
})