impaktapps-ui-builder 0.0.343 → 0.0.345

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.
@@ -7331,11 +7331,13 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
7331
7331
  }
7332
7332
  },
7333
7333
  savePageHandler: async () => {
7334
- var _a;
7334
+ var _a, _b;
7335
7335
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
7336
- saveFormdataInLocalStorage(store2.ctx.core.data);
7336
+ const path = (_b = store2.searchParams) == null ? void 0 : _b.get("path");
7337
+ saveFormdataInLocalStorage(store2.ctx.core.data, path);
7337
7338
  const config = localStorage.getItem("pageFormdata");
7338
- const isSubmitted = await saveHandler(store2, service2, submitHandler, config);
7339
+ const actualConfig = JSON.parse(config);
7340
+ const isSubmitted = await saveHandler(store2, service2, submitHandler, actualConfig);
7339
7341
  if (isSubmitted) {
7340
7342
  localStorage.removeItem("pageFormdata");
7341
7343
  store2.navigate(`/PageMaster?id=${id}`);
@@ -7484,7 +7486,8 @@ var pageMaster = (funcParams) => {
7484
7486
  savePageHandler: async () => {
7485
7487
  saveFormdataInLocalStorage(store2.ctx.core.data);
7486
7488
  const config2 = localStorage.getItem("pageFormdata");
7487
- const isSubmitted = await saveHandler(store2, service2, submitHandler, config2);
7489
+ const actualConfig = JSON.parse(config2);
7490
+ const isSubmitted = await saveHandler(store2, service2, submitHandler, actualConfig);
7488
7491
  if (isSubmitted) {
7489
7492
  localStorage.removeItem("pageFormdata");
7490
7493
  store2.navigate("/PageMasterRecords");
@@ -8134,11 +8137,13 @@ var event = (store2, dynamicData2, submitHandler, service2) => {
8134
8137
  return EventSchema;
8135
8138
  },
8136
8139
  savePageHandler: async () => {
8137
- var _a;
8140
+ var _a, _b;
8138
8141
  const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
8139
- saveFormdataInLocalStorage(store2.ctx.core.data);
8142
+ const path = (_b = store2.searchParams) == null ? void 0 : _b.get("path");
8143
+ saveFormdataInLocalStorage(store2.ctx.core.data, path);
8140
8144
  const config = localStorage.getItem("pageFormdata");
8141
- const isSubmitted = await saveHandler(store2, service2, submitHandler, config);
8145
+ const actualConfig = JSON.parse(config);
8146
+ const isSubmitted = await saveHandler(store2, service2, submitHandler, actualConfig);
8142
8147
  if (isSubmitted) {
8143
8148
  localStorage.removeItem("pageFormdata");
8144
8149
  store2.navigate(`/PageMaster?id=${id}`);