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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.963-CopyComponent.3",
3
+ "version": "0.0.963-CopyComponent.4",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -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