diff --git a/src/views/liveeditor/LiveEditor.vue b/src/views/liveeditor/LiveEditor.vue index acbdf223d..89be88050 100644 --- a/src/views/liveeditor/LiveEditor.vue +++ b/src/views/liveeditor/LiveEditor.vue @@ -453,9 +453,13 @@ img.flag { extDependencies['@fullcalendar/timegrid'] = "5.4.0"; } - if(this.name === 'OrganizationChartDemo') { - extDependencies['mitt'] = "^2.1.0"; - } + let mittComponents = ['OrganizationChartDemo', 'ConfirmDialogDemo', 'ConfirmPopupDemo']; + + mittComponents.forEach(cmp => { + if(this.name === cmp) { + extDependencies['mitt'] = "^2.1.0"; + } + }); return this.createSandboxParameters(`${name}${extension}`, _files, extDependencies); } diff --git a/src/views/liveeditor/LiveEditorData.js b/src/views/liveeditor/LiveEditorData.js index db10c3855..f5ee53cc2 100644 --- a/src/views/liveeditor/LiveEditorData.js +++ b/src/views/liveeditor/LiveEditorData.js @@ -78,7 +78,7 @@ export default class PhotoService { 'ProductService': ` import axios from 'axios'; import productsSmallData from '../../public/data/products-small.json'; -import productsData from '../../public/data/productsjson'; +import productsData from '../../public/data/products.json'; import productsWithOrdersSmallData from '../../public/data/products-orders-small.json'; export default class ProductService { @@ -92,7 +92,7 @@ export default class ProductService { } getProductsWithOrdersSmall() { - return axios.get(productsWwithOrdersSmallData).then(res => res.config.url.data); + return axios.get(productsWithOrdersSmallData).then(res => res.config.url.data); } } `