impaktapps-ui-builder 0.0.101-alpha.55 → 0.0.101-alpha.56

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.
@@ -8516,18 +8516,18 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
8516
8516
  return getFormdataFromSessionStorage(path);
8517
8517
  },
8518
8518
  getSchema: function() {
8519
- var _a, _b, _c, _d, _e;
8519
+ var _a;
8520
8520
  const schema2 = _.cloneDeep(ComponentSchema);
8521
8521
  if (sessionStorage.getItem("copiedConfig")) {
8522
8522
  schema2.properties.RemoveItemButton.disabled = false;
8523
8523
  }
8524
8524
  const currentConfig = JSON.parse(sessionStorage.getItem("pageFormdata"));
8525
8525
  const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
8526
- const lastDotIndex = path.lastIndexOf(".");
8527
- const currPath = path.slice(lastDotIndex + 1);
8528
- const currObj = _.get(currentConfig, currPath);
8529
- console.log("path>>", schema2.properties.pageName.path, "label>>", (_c = (_b = currObj == null ? void 0 : currObj.config) == null ? void 0 : _b.main) == null ? void 0 : _c.label);
8530
- schema2.properties.pageName.path.push({ label: ((_e = (_d = currObj == null ? void 0 : currObj.config) == null ? void 0 : _d.main) == null ? void 0 : _e.label) || "undefined", path });
8526
+ const pathArrayAll = path.split(".");
8527
+ pathArrayAll.reduce((elem, i) => {
8528
+ const currObj = _.get(currentConfig, elem);
8529
+ console.log("currObj>>", currObj, "index>>", i);
8530
+ }, currentConfig);
8531
8531
  return schema2;
8532
8532
  },
8533
8533
  okHandler: () => okHandler(store2),