impaktapps-ui-builder 0.0.384 → 0.0.385
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.
|
@@ -7290,15 +7290,14 @@ const getFormdataFromLocalStorage = (path) => {
|
|
|
7290
7290
|
return returnValue || pageFormdata;
|
|
7291
7291
|
};
|
|
7292
7292
|
async function saveHandler(store2, service2, submitHandler, pageName) {
|
|
7293
|
-
var _a
|
|
7294
|
-
const
|
|
7295
|
-
const path = (_b = store2.searchParams) == null ? void 0 : _b.get("path");
|
|
7293
|
+
var _a;
|
|
7294
|
+
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
7296
7295
|
saveFormdataInLocalStorage(store2.ctx.core.data, path);
|
|
7297
7296
|
const config = JSON.parse(localStorage.getItem("pageFormdata"));
|
|
7298
7297
|
if (_.isEmpty(store2.ctx.core.errors)) {
|
|
7299
7298
|
try {
|
|
7300
7299
|
const saveReturn = await submitHandler(store2, service2, config);
|
|
7301
|
-
navigateHandler(store2, true, pageName ? `/${pageName}?id=${id}` : "/PageMasterRecords");
|
|
7300
|
+
navigateHandler(store2, true, pageName ? `/${pageName}?id=${saveReturn.id}` : "/PageMasterRecords");
|
|
7302
7301
|
} catch (err) {
|
|
7303
7302
|
navigateHandler(store2, false);
|
|
7304
7303
|
}
|