From 8b1ffc934c93c0b48c63d5fc64ac28ecfa0c9b88 Mon Sep 17 00:00:00 2001 From: pragati1610 Date: Wed, 5 Oct 2022 08:25:00 +0530 Subject: [PATCH 1/2] fix buggy redirect after clicking on cancel button in add more bed types --- src/Components/Facility/BedCapacityForm.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Components/Facility/BedCapacityForm.tsx b/src/Components/Facility/BedCapacityForm.tsx index d5698decdb4..63b0de421ca 100644 --- a/src/Components/Facility/BedCapacityForm.tsx +++ b/src/Components/Facility/BedCapacityForm.tsx @@ -325,9 +325,7 @@ export const BedCapacityForm = (props: BedCapacityProps) => { variant="contained" type="button" fullWidth - onClick={() => - goBack(!id && `/facility/${facilityId}/doctor`) - } + onClick={() => goBack(!id && `/facility/${facilityId}`)} > Cancel From e3c8c41f8ca37e3d8a997eac623f561b04eba456 Mon Sep 17 00:00:00 2001 From: pragati1610 Date: Wed, 5 Oct 2022 08:30:58 +0530 Subject: [PATCH 2/2] fix: deepscan issues --- src/Components/Facility/TreatmentSummary.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/Facility/TreatmentSummary.tsx b/src/Components/Facility/TreatmentSummary.tsx index 24de3117976..3958b3f2d2f 100644 --- a/src/Components/Facility/TreatmentSummary.tsx +++ b/src/Components/Facility/TreatmentSummary.tsx @@ -3,7 +3,7 @@ import { useDispatch } from "react-redux"; import { getPatient, getInvestigation } from "../../Redux/actions"; import { ConsultationModel } from "./models"; import { statusType, useAbortableEffect } from "../../Common/utils"; -import { PatientModel, DailyRoundsModel } from "../Patient/models"; +import { PatientModel } from "../Patient/models"; import loadable from "@loadable/component"; import moment from "moment"; import { getConsultation } from "../../Redux/actions";