impaktapps-ui-builder 0.0.963-CopyComponent.3 → 0.0.963-CopyComponent.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/impaktapps-ui-builder.es.js +2 -2
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +1 -1
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/services/component.ts +2 -1
- package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +2 -1
package/package.json
CHANGED
|
@@ -190,7 +190,8 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
|
|
|
190
190
|
PasteComponent: function(){
|
|
191
191
|
const path = store.searchParams?.get("path");
|
|
192
192
|
const rowId = dynamicData.path.split(".")[1];
|
|
193
|
-
const updatedPath = `${path}.elements[${rowId}]`;
|
|
193
|
+
// const updatedPath = `${path}.elements[${rowId}]`;
|
|
194
|
+
const updatedPath = path ? `${path}.elements[${rowId}]` : `elements[${rowId}]`;
|
|
194
195
|
const formData = getFormdataFromSessionStorage(updatedPath)
|
|
195
196
|
const insertComponentPath = formData.elements.length;
|
|
196
197
|
|
|
@@ -116,7 +116,8 @@ export default (funcParams: funcParamsProps) => {
|
|
|
116
116
|
PasteComponent: function(){
|
|
117
117
|
const path = store.searchParams?.get("path");
|
|
118
118
|
const rowId = dynamicData.path.split(".")[1];
|
|
119
|
-
const updatedPath = `${path}.elements[${rowId}]`;
|
|
119
|
+
// const updatedPath = `${path}.elements[${rowId}]`;
|
|
120
|
+
const updatedPath = path ? `${path}.elements[${rowId}]` : `elements[${rowId}]`;
|
|
120
121
|
const formData = getFormdataFromSessionStorage(updatedPath)
|
|
121
122
|
const insertComponentPath = formData.elements.length;
|
|
122
123
|
|