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