fix: tab新增失败

This commit is contained in:
fit2cloud-chenyw 2022-02-28 11:05:10 +08:00
parent 4883f38830
commit ea8fe4b44f

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] = []
}
})