From bfc4f51ca91ee782e78c731d2775877a590b0769 Mon Sep 17 00:00:00 2001 From: Aditya Jindal Date: Sat, 28 Dec 2024 11:18:45 +0530 Subject: [PATCH 1/2] Fix: the selected medicine issue in the placeholder (#9596) --- src/components/Medicine/MedibaseAutocompleteFormField.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Medicine/MedibaseAutocompleteFormField.tsx b/src/components/Medicine/MedibaseAutocompleteFormField.tsx index d2d57b1db85..185b3293b99 100644 --- a/src/components/Medicine/MedibaseAutocompleteFormField.tsx +++ b/src/components/Medicine/MedibaseAutocompleteFormField.tsx @@ -55,7 +55,7 @@ export default function MedibaseAutocompleteFormField( required onChange={field.handleChange} options={mergeQueryOptions( - field.value && !query ? [field.value] : [], + field.value ? [field.value] : [], data ?? [], (obj) => obj.id, )} From 1b6fa7a7d2b7674ce44345d43e482e253fb2da71 Mon Sep 17 00:00:00 2001 From: Mohammed Nihal <57055998+nihal467@users.noreply.github.com> Date: Sat, 28 Dec 2024 12:20:02 +0530 Subject: [PATCH 2/2] Removed unwanted check in the patient discharge test (#9601) --- cypress/e2e/patient_spec/PatientConsultationDischarge.cy.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/cypress/e2e/patient_spec/PatientConsultationDischarge.cy.ts b/cypress/e2e/patient_spec/PatientConsultationDischarge.cy.ts index a3b4906e0ca..fc5d26e006a 100644 --- a/cypress/e2e/patient_spec/PatientConsultationDischarge.cy.ts +++ b/cypress/e2e/patient_spec/PatientConsultationDischarge.cy.ts @@ -117,8 +117,6 @@ describe("Patient Discharge based on multiple reason", () => { patientDischarge.interceptDischargePatient(); cy.clickSubmitButton("Acknowledge & Submit"); patientDischarge.verifyDischargePatient(); - cy.verifyNotification("Patient Discharged Successfully"); - // Verify the consultation dashboard reflection }); afterEach(() => {