impaktapps-ui-builder 0.0.101-alpha.42 → 0.0.101-alpha.44

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.
@@ -8441,16 +8441,10 @@ function refreshPage(type, store2) {
8441
8441
  UiSchema.elements[0].elements = elements || [CoreSection, StyleSection, EventSection(store2.theme.myTheme), ValidationSection];
8442
8442
  }
8443
8443
  const path = (_b = store2.searchParams) == null ? void 0 : _b.get("path");
8444
- const pathArrayAll = path.split(".");
8445
- const parentObj = pathArrayAll.reduce((currObj, path2, index) => {
8446
- var _a2;
8447
- if (index === pathArrayAll.length - 1) {
8448
- return currObj;
8449
- }
8450
- const currElemIndexWithBracket = path2.split("[")[1];
8451
- const currElemIndex = parseInt(currElemIndexWithBracket.slice(0, -1));
8452
- return (_a2 = currObj == null ? void 0 : currObj["elements"]) == null ? void 0 : _a2[currElemIndex];
8453
- }, currentConfig);
8444
+ const parentObj = _.get(currentConfig, path);
8445
+ console.log("currentConfig", currentConfig);
8446
+ console.log("path", path);
8447
+ console.log("parentObj", parentObj);
8454
8448
  if ((parentObj == null ? void 0 : parentObj.type) === "Table") {
8455
8449
  UiSchema.elements[0].elements[0].elements[4] = {
8456
8450
  type: "Control",