qinyan 1 tahun lalu
induk
melakukan
815effa9f8
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  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);