Skip to content

Commit

Permalink
Remove unintended duplicate request
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad committed Aug 20, 2024
1 parent 9a5e833 commit b8e8d67
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/Components/Facility/ConsultationForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
{
Expand Down

0 comments on commit b8e8d67

Please sign in to comment.