From ca788834ea15d6dd43bf0923757ca1d46d00ebc4 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期一, 12 七月 2021 23:17:26 +0800
Subject: [PATCH] 2021-07-12

---
 src/tabviews/custom/index.jsx |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/tabviews/custom/index.jsx b/src/tabviews/custom/index.jsx
index 01be5f2..e2180a4 100644
--- a/src/tabviews/custom/index.jsx
+++ b/src/tabviews/custom/index.jsx
@@ -570,7 +570,7 @@
       }
 
       if (item.type === 'card') {
-        item.subcards.forEach(card => {
+        item.subcards && item.subcards.forEach(card => {
           let _hasheight = card.style.height && card.style.height !== 'auto'
 
           if (card.style.shadow) { // 鍗$墖闃村奖
@@ -625,7 +625,7 @@
           })
         })
       } else if ((item.type === 'table' && item.subtype === 'tablecard') || item.type === 'carousel') {
-        item.subcards.forEach(card => {
+        item.subcards && item.subcards.forEach(card => {
           let _hasheight = card.style.height && card.style.height !== 'auto'
           card.elements = card.elements.filter(cell => {
             if (cell.eleType === 'button') {

--
Gitblit v1.8.0