qinyan 1 год назад
Родитель
Сommit
815effa9f8
1 измененных файлов с 1 добавлено и 0 удалено
  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);