qinyan 1 year ago
parent
commit
815effa9f8
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/modules/editor/controllers/ScreenCtrl/index.ts

+ 1 - 0
src/modules/editor/controllers/ScreenCtrl/index.ts

@@ -266,6 +266,7 @@ export class ScreenCtrl extends ModuleControl<EditorModule> {
          let childrs = card.children.default || [];
          childrs.forEach(item=>{
             const c = compMap[item] as DesignComp;
+            if (!c) return;
             screenCard.children.push({id: item, size: c.layout.size, matrix: c.layout.transformMatrix as string} );
          })
          screenCards.push(screenCard);