From 8f31371e2b3c66ed9988ec0e75b8ad676d56f0c4 Mon Sep 17 00:00:00 2001 From: Pragati Bhattad <55177805+Pragati1610@users.noreply.github.com> Date: Thu, 20 Oct 2022 18:34:32 +0530 Subject: [PATCH] fix buggy redirect after clicking on cancel button in add more bed types (#3710) * fix buggy redirect after clicking on cancel button in add more bed types * fix: deepscan issues --- 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 2754cac864b..aebfb5dd77b 100644 --- a/src/Components/Facility/BedCapacityForm.tsx +++ b/src/Components/Facility/BedCapacityForm.tsx @@ -324,9 +324,7 @@ export const BedCapacityForm = (props: BedCapacityProps) => { variant="contained" type="button" fullWidth - onClick={() => - goBack(!id && `/facility/${facilityId}/doctor`) - } + onClick={() => goBack(!id && `/facility/${facilityId}`)} > Cancel