impaktapps-ui-builder 0.0.101-alpha.36 → 0.0.101-alpha.38
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.
|
@@ -8428,7 +8428,7 @@ const sectionLabels = {
|
|
|
8428
8428
|
function refreshPage(type, store2) {
|
|
8429
8429
|
var _a, _b;
|
|
8430
8430
|
const UiSchema = _.cloneDeep(componentBasicUiSchema(store2.theme.myTheme));
|
|
8431
|
-
const currentConfig =
|
|
8431
|
+
const currentConfig = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
8432
8432
|
if (type) {
|
|
8433
8433
|
const sectionUiSchema = {
|
|
8434
8434
|
Core: CoreSection,
|
|
@@ -8445,8 +8445,11 @@ function refreshPage(type, store2) {
|
|
|
8445
8445
|
}
|
|
8446
8446
|
const path = (_b = store2.searchParams) == null ? void 0 : _b.get("path");
|
|
8447
8447
|
const pathArrayAll = path.split(".");
|
|
8448
|
-
const parentObj = pathArrayAll.reduce((currObj, path2) => {
|
|
8448
|
+
const parentObj = pathArrayAll.reduce((currObj, path2, index) => {
|
|
8449
8449
|
var _a2;
|
|
8450
|
+
if (index === pathArrayAll.length - 1) {
|
|
8451
|
+
return currObj;
|
|
8452
|
+
}
|
|
8450
8453
|
const currElemIndexWithBracket = path2.split("[")[1];
|
|
8451
8454
|
const currElemIndex = parseInt(currElemIndexWithBracket.slice(0, -1));
|
|
8452
8455
|
console.log(currObj);
|