impaktapps-ui-builder 0.0.101-alpha.32 → 0.0.101-alpha.34
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.
|
@@ -8442,7 +8442,16 @@ function refreshPage(type, store2) {
|
|
|
8442
8442
|
UiSchema.elements[0].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "Events", "Validation"];
|
|
8443
8443
|
UiSchema.elements[0].elements = elements || [CoreSection, StyleSection, EventSection(store2.theme.myTheme), ValidationSection];
|
|
8444
8444
|
}
|
|
8445
|
-
|
|
8445
|
+
const path = (_b = store2.searchParams) == null ? void 0 : _b.get("path");
|
|
8446
|
+
const pathArrayAll = path.split(".");
|
|
8447
|
+
const parentObj = pathArrayAll.reduce((currObj, path2) => {
|
|
8448
|
+
var _a2;
|
|
8449
|
+
const currElemIndexWithBracket = path2.split("[")[1];
|
|
8450
|
+
const currElemIndex = parseInt(currElemIndexWithBracket.slice(0, -1));
|
|
8451
|
+
console.log(currObj);
|
|
8452
|
+
return (_a2 = currObj == null ? void 0 : currObj["elements"]) == null ? void 0 : _a2[currElemIndex];
|
|
8453
|
+
}, UiSchema);
|
|
8454
|
+
console.log("parentObj", parentObj);
|
|
8446
8455
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
8447
8456
|
this.ElementPathSetter(UiSchema);
|
|
8448
8457
|
}
|