From 0e25ace0cebc7d37c82c717cb71d096adfcf577e Mon Sep 17 00:00:00 2001 From: Rithvik Nishad Date: Tue, 20 Aug 2024 22:41:39 +0530 Subject: [PATCH] Remove unintended duplicate request (#8372) --- 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, {