impaktapps-ui-builder 0.0.963-CopyComponent.4 → 0.0.963-CopyComponent.5
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 -0
- 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 +6 -1
- package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +3 -1
package/package.json
CHANGED
|
@@ -200,7 +200,12 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
|
|
|
200
200
|
// const copiedData = sessionStorage.getItem('copiedComponent');
|
|
201
201
|
const copiedData = JSON.parse(sessionStorage.getItem("copiedComponent"));
|
|
202
202
|
saveFormdataInSessionStorage(copiedData, finalPath);
|
|
203
|
-
sessionStorage.removeItem('copiedComponent')
|
|
203
|
+
sessionStorage.removeItem('copiedComponent');
|
|
204
|
+
|
|
205
|
+
// const finalPath = `${path}.elements[${store.formData.elements.length}]`
|
|
206
|
+
// store.searchParams.set("path", finalPath)
|
|
207
|
+
// store.setSearchParams(store.searchParams)
|
|
208
|
+
this.setPage();
|
|
204
209
|
|
|
205
210
|
}
|
|
206
211
|
|
|
@@ -126,7 +126,9 @@ export default (funcParams: funcParamsProps) => {
|
|
|
126
126
|
// const copiedData = sessionStorage.getItem('copiedComponent');
|
|
127
127
|
const copiedData = JSON.parse(sessionStorage.getItem("copiedComponent"));
|
|
128
128
|
saveFormdataInSessionStorage(copiedData, finalPath);
|
|
129
|
-
sessionStorage.removeItem('copiedComponent')
|
|
129
|
+
sessionStorage.removeItem('copiedComponent');
|
|
130
|
+
|
|
131
|
+
this.setPage();
|
|
130
132
|
|
|
131
133
|
}
|
|
132
134
|
}
|