diff --git a/frontend/micro-ui/web/micro-ui-internals/example/package.json b/frontend/micro-ui/web/micro-ui-internals/example/package.json index 0bc47ca5543..17a312442ec 100644 --- a/frontend/micro-ui/web/micro-ui-internals/example/package.json +++ b/frontend/micro-ui/web/micro-ui-internals/example/package.json @@ -16,7 +16,7 @@ "@upyog/digit-ui-module-mcollect": "1.7.3", "@upyog/digit-ui-module-noc": "1.7.3", "@upyog/digit-ui-module-obps": "1.7.2", - "@upyog/digit-ui-module-pgr": "1.7.8", + "@upyog/digit-ui-module-pgr": "1.7.9", "@upyog/digit-ui-module-pt": "1.7.8", "@upyog/digit-ui-module-receipts": "1.7.3", "@upyog/digit-ui-module-tl": "1.7.2", diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/libraries/src/hooks/pgr/useComplaintDetails.js b/frontend/micro-ui/web/micro-ui-internals/packages/libraries/src/hooks/pgr/useComplaintDetails.js index ee40baaf459..435cd29e37b 100644 --- a/frontend/micro-ui/web/micro-ui-internals/packages/libraries/src/hooks/pgr/useComplaintDetails.js +++ b/frontend/micro-ui/web/micro-ui-internals/packages/libraries/src/hooks/pgr/useComplaintDetails.js @@ -55,7 +55,7 @@ const fetchComplaintDetails = async (tenantId, id) => { const { service, workflow } = (await Digit.PGRService.search(tenantId, { serviceRequestId: id })).ServiceWrappers[0] || {}; Digit.SessionStorage.set("complaintDetails", { service, workflow }); if (service && workflow && serviceDefs) { - const complaintType = serviceDefs.filter((def) => def.serviceCode === service.serviceCode)[0].menuPath.toUpperCase(); + const complaintType = serviceDefs.filter((def) => def.serviceCode === service.serviceCode)[0]?.menuPath?.toUpperCase(); const ids = workflow.verificationDocuments ? workflow.verificationDocuments.filter((doc) => doc.documentType === "PHOTO").map((photo) => photo.fileStoreId || photo.id) : null; diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/modules/pgr/package.json b/frontend/micro-ui/web/micro-ui-internals/packages/modules/pgr/package.json index d2bcc395af2..80c7050ed82 100644 --- a/frontend/micro-ui/web/micro-ui-internals/packages/modules/pgr/package.json +++ b/frontend/micro-ui/web/micro-ui-internals/packages/modules/pgr/package.json @@ -1,6 +1,6 @@ { "name": "@upyog/digit-ui-module-pgr", - "version": "1.7.8", + "version": "1.7.9", "license": "MIT", "main": "dist/index.js", "module": "dist/index.modern.js", diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/modules/pgr/src/pages/citizen/ComplaintDetails.js b/frontend/micro-ui/web/micro-ui-internals/packages/modules/pgr/src/pages/citizen/ComplaintDetails.js index c4fd9bc9b65..e033c5f2d10 100644 --- a/frontend/micro-ui/web/micro-ui-internals/packages/modules/pgr/src/pages/citizen/ComplaintDetails.js +++ b/frontend/micro-ui/web/micro-ui-internals/packages/modules/pgr/src/pages/citizen/ComplaintDetails.js @@ -132,9 +132,9 @@ const ComplaintDetailsPage = (props) => { return (
-
{t(`${LOCALIZATION_KEY.CS_HEADER}_COMPLAINT_SUMMARY`)}
+
{t(`${LOCALIZATION_KEY?.CS_HEADER}_COMPLAINT_SUMMARY`)}
- {Object.keys(complaintDetails).length > 0 ? ( + {complaintDetails && Object.keys(complaintDetails).length > 0 ? ( {t(`SERVICEDEFS.${complaintDetails.audit.serviceCode.toUpperCase()}`)} diff --git a/frontend/micro-ui/web/package.json b/frontend/micro-ui/web/package.json index 615ca99dbbb..9745f9c560a 100644 --- a/frontend/micro-ui/web/package.json +++ b/frontend/micro-ui/web/package.json @@ -24,7 +24,7 @@ "@upyog/digit-ui-module-commonpt":"1.7.2", "@upyog/digit-ui-module-obps": "1.7.2", "@upyog/digit-ui-module-noc": "1.7.3", - "@upyog/digit-ui-module-pgr": "1.7.8", + "@upyog/digit-ui-module-pgr": "1.7.9", "@upyog/digit-ui-module-pt": "1.7.8", "@upyog/digit-ui-module-receipts": "1.7.3", "@upyog/digit-ui-module-tl": "1.7.2",