impaktapps-ui-builder 0.0.101-alpha.32 → 0.0.101-alpha.33
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,14 @@ 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
|
+
const currElemIndexWithBracket = path2.split("[")[1];
|
|
8449
|
+
const currElemIndex = parseInt(currElemIndexWithBracket.slice(0, -1));
|
|
8450
|
+
return currObj["elements"][currElemIndex];
|
|
8451
|
+
});
|
|
8452
|
+
console.log("parentObj", parentObj);
|
|
8446
8453
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
8447
8454
|
this.ElementPathSetter(UiSchema);
|
|
8448
8455
|
}
|