qinyan hace 1 año
padre
commit
55ae469af2

+ 1 - 0
src/modules/editor/components/CompUI/basicUI/Page/component.tsx

@@ -30,6 +30,7 @@ export const Component = defineComponent({
           {slots.Container?.(
             children.default.map((compId) => {
               const comp = helper.findComp(compId);
+              if (!comp) return;
               return slots.CompItem?.(comp);
             })
           )}

+ 1 - 1
src/pages/website/Promotion2/controller.tsx

@@ -34,7 +34,7 @@ export function createPromotinController(
   };
 
   async function sharePromotion(record: any) {
-    editor.actions.initDesign(record._id);
+    await editor.actions.initDesign(record._id);
     editor.actions.switchMode("preview");
     resource.showModal(
       <ShareModal record={record} controller={ctrl}>