qinyan 1 yıl önce
ebeveyn
işleme
815effa9f8

+ 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);