From b8e8d6762c449a2f1a39f37f5df1ba499d2fa532 Mon Sep 17 00:00:00 2001 From: rithviknishad Date: Tue, 20 Aug 2024 22:30:25 +0530 Subject: [PATCH] Remove unintended duplicate request --- src/Components/Facility/ConsultationForm.tsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/Components/Facility/ConsultationForm.tsx b/src/Components/Facility/ConsultationForm.tsx index 5cda9d5ab01..355d4ce745e 100644 --- a/src/Components/Facility/ConsultationForm.tsx +++ b/src/Components/Facility/ConsultationForm.tsx @@ -740,12 +740,6 @@ export const ConsultationForm = ({ facilityId, patientId, id }: Props) => { patient_no: state.form.patient_no || null, }; - request(id ? routes.updateConsultation : routes.createConsultation, { - pathParams: id ? { id } : undefined, - body: data, - controllerRef: submitController, - }); - const { data: obj } = await request( id ? routes.updateConsultation : routes.createConsultation, {