@mseva/digit-ui-module-ndc 1.0.27 → 1.0.28

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.
@@ -1305,7 +1305,33 @@ const ApplicationOverview = () => {
1305
1305
  setShowErrorToastt(true);
1306
1306
  return;
1307
1307
  }
1308
- return;
1308
+ const finalPayload = {
1309
+ Applications: [updatedApplicant]
1310
+ };
1311
+ try {
1312
+ const response = await Digit.NDCService.NDCUpdate({
1313
+ tenantId,
1314
+ details: finalPayload
1315
+ });
1316
+ setShowToast({
1317
+ key: "success",
1318
+ message: "Successfully updated the status"
1319
+ });
1320
+ setError("Successfully updated the status");
1321
+ workflowDetails.revalidate();
1322
+ setTimeout(() => {
1323
+ history.push("/digit-ui/employee/ndc/inbox");
1324
+ window.location.reload();
1325
+ }, 2000);
1326
+ setSelectedAction(null);
1327
+ setShowModal(false);
1328
+ } catch (err) {
1329
+ setShowToast({
1330
+ key: "error",
1331
+ message: "Something went wrong"
1332
+ });
1333
+ setError("Something went wrong");
1334
+ }
1309
1335
  };
1310
1336
  const closeModal = () => {
1311
1337
  setSelectedAction(null);