impaktapps-ui-builder 0.0.101-alpha.42 → 0.0.101-alpha.43
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,8 @@ 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
|
-
|
|
8445
|
-
const parentObj =
|
|
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
|
+
path.split(".");
|
|
8445
|
+
const parentObj = _.get(currentConfig, path);
|
|
8454
8446
|
if ((parentObj == null ? void 0 : parentObj.type) === "Table") {
|
|
8455
8447
|
UiSchema.elements[0].elements[0].elements[4] = {
|
|
8456
8448
|
type: "Control",
|