impaktapps-ui-builder 0.0.334 → 0.0.335
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.
|
@@ -7415,14 +7415,19 @@ function submitPageHandlerProvider(store2, service2, submitHandler, pageName) {
|
|
|
7415
7415
|
return {
|
|
7416
7416
|
submitPageHandler: async function() {
|
|
7417
7417
|
if (_.isEmpty(store2.ctx.core.errors)) {
|
|
7418
|
-
|
|
7418
|
+
console.log("entered submitPageHandler if condition");
|
|
7419
|
+
try {
|
|
7420
|
+
const saveReturn = await submitHandler(store2, service2);
|
|
7421
|
+
console.log("saveReturnnn");
|
|
7419
7422
|
localStorage.removeItem("pageFormdata");
|
|
7420
7423
|
store2.navigate(pageName || -1);
|
|
7421
7424
|
store2.setNotify({
|
|
7422
7425
|
SuccessMessage: "Submit Successfully",
|
|
7423
7426
|
Success: true
|
|
7424
7427
|
});
|
|
7425
|
-
})
|
|
7428
|
+
} catch (error) {
|
|
7429
|
+
console.error("Error in submitHandler:", error);
|
|
7430
|
+
}
|
|
7426
7431
|
} else {
|
|
7427
7432
|
store2.setValidation("ValidateAndShow");
|
|
7428
7433
|
store2.setNotify({
|