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.
package/package.json
CHANGED
|
@@ -58,14 +58,13 @@ export const getFormdataFromLocalStorage = (path?: string) => {
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
export async function saveHandler(store, service, submitHandler, pageName?: string) {
|
|
61
|
-
const id = store.searchParams?.get("id");
|
|
62
61
|
const path = store.searchParams?.get("path");
|
|
63
62
|
saveFormdataInLocalStorage(store.ctx.core.data, path);
|
|
64
63
|
const config = JSON.parse(localStorage.getItem("pageFormdata"));
|
|
65
64
|
if (_.isEmpty(store.ctx.core.errors)) {
|
|
66
65
|
try {
|
|
67
66
|
const saveReturn = await submitHandler(store, service, config);
|
|
68
|
-
navigateHandler(store, true, pageName ? `/${pageName}?id=${id}` : "/PageMasterRecords")
|
|
67
|
+
navigateHandler(store, true, pageName ? `/${pageName}?id=${saveReturn.id}` : "/PageMasterRecords")
|
|
69
68
|
} catch (err) {
|
|
70
69
|
navigateHandler(store, false)
|
|
71
70
|
}
|