From 0156feb348ad2475ddd2ffc287141b54ecf48d99 Mon Sep 17 00:00:00 2001 From: Sneha Date: Thu, 6 Aug 2026 23:39:56 +0530 Subject: [PATCH 1/2] fix(doctor-worklist): guard against undefined success message in care-context popup After a beneficiary returns from the lab and the doctor clicks Update, getHealthIDDetails() concatenated res.data.response directly into the popup text. When that field was falsy, `undefined + '. '` rendered the literal word "undefined" in the success dialog. Fall back to a proper success string, matching the pattern already used by the initial Save flow. Co-Authored-By: Claude Sonnet 5 --- .../app-modules/nurse-doctor/workarea/workarea.component.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/app-modules/nurse-doctor/workarea/workarea.component.ts b/src/app/app-modules/nurse-doctor/workarea/workarea.component.ts index 729fd59b..037d2648 100644 --- a/src/app/app-modules/nurse-doctor/workarea/workarea.component.ts +++ b/src/app/app-modules/nurse-doctor/workarea/workarea.component.ts @@ -4469,10 +4469,14 @@ export class WorkareaComponent /* Fetch health ID detaiuls to link the visit */ getHealthIDDetails(successResponseFromAPI: any) { this.getMappedAbdmFacility(); + const successMessage = + successResponseFromAPI ?? + this.current_language_set?.alerts?.info?.datafillSuccessfully ?? + 'Data saved successfully'; this.confirmationService .confirmCareContext( 'info', - successResponseFromAPI + + successMessage + '. ' + (this.current_language_set?.common?.doYouWantToLinkCareContext ?? 'Do you want to link care context?'), From 938f4089c7f0307f279f6ffd2bc820e27ebf4d16 Mon Sep 17 00:00:00 2001 From: SnehaRH <77656297+snehar-nd@users.noreply.github.com> Date: Tue, 8 Sep 2026 16:10:53 +0530 Subject: [PATCH 2/2] Update version from 3.6.1 to 3.9.0 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index b7ff5d9e..881e6bb6 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ 4.0.0 com.iemr.aam-ui aam-ui - 3.6.1 + 3.9.0 AAM-UI Piramal - AAM: Module ui war