impaktapps-ui-builder 0.0.336 → 0.0.337

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.
@@ -7426,18 +7426,16 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
7426
7426
  };
7427
7427
  };
7428
7428
  function submitPageHandlerProvider(store2, service2, submitHandler) {
7429
- let isTrue = false;
7430
7429
  return {
7431
7430
  submitPageHandler: async function() {
7431
+ let isTrue = false;
7432
7432
  if (_.isEmpty(store2.ctx.core.errors)) {
7433
- submitHandler(store2, service2).then((saveReturn) => {
7433
+ try {
7434
+ const saveReturn = await submitHandler(store2, service2);
7434
7435
  isTrue = true;
7435
- }).catch((error) => {
7436
- console.error("Error in submitHandler:", error);
7436
+ } catch (err) {
7437
7437
  isTrue = false;
7438
- });
7439
- } else {
7440
- isTrue = false;
7438
+ }
7441
7439
  }
7442
7440
  return isTrue;
7443
7441
  }