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.
@@ -8254,7 +8254,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8254
8254
  var _a;
8255
8255
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8256
8256
  const rowId = dynamicData2.path.split(".")[1];
8257
- const updatedPath = `${path}.elements[${rowId}]`;
8257
+ const updatedPath = path ? `${path}.elements[${rowId}]` : `elements[${rowId}]`;
8258
8258
  const formData = getFormdataFromSessionStorage(updatedPath);
8259
8259
  const insertComponentPath = formData.elements.length;
8260
8260
  const finalPath = `${updatedPath}.elements[${insertComponentPath}]`;
@@ -8368,7 +8368,7 @@ var pageMaster = (funcParams) => {
8368
8368
  var _a;
8369
8369
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8370
8370
  const rowId = dynamicData2.path.split(".")[1];
8371
- const updatedPath = `${path}.elements[${rowId}]`;
8371
+ const updatedPath = path ? `${path}.elements[${rowId}]` : `elements[${rowId}]`;
8372
8372
  const formData = getFormdataFromSessionStorage(updatedPath);
8373
8373
  const insertComponentPath = formData.elements.length;
8374
8374
  const finalPath = `${updatedPath}.elements[${insertComponentPath}]`;