diff --git a/src/Components/Facility/FacilityFilter/LocalBodySelect.tsx b/src/Components/Facility/FacilityFilter/LocalBodySelect.tsx index 63e62a6f42..71f42d2fbc 100644 --- a/src/Components/Facility/FacilityFilter/LocalBodySelect.tsx +++ b/src/Components/Facility/FacilityFilter/LocalBodySelect.tsx @@ -23,7 +23,6 @@ function LocalBodySelect(props: LocalBodySelectProps) { className, multiple, selected, - searchAll, setSelected, margin, district, @@ -79,7 +78,7 @@ function LocalBodySelect(props: LocalBodySelectProps) { isLocalBodyLoading(true); fetchLocalbodies(); isLocalBodyLoading(false); - }, [dispatchAction, district]); + }, [dispatchAction, district, selected]); return ( {
- +
diff --git a/src/Components/Patient/PatientFilterV2.tsx b/src/Components/Patient/PatientFilterV2.tsx index 9970caf1ff..65917d12e8 100644 --- a/src/Components/Patient/PatientFilterV2.tsx +++ b/src/Components/Patient/PatientFilterV2.tsx @@ -361,6 +361,7 @@ export default function PatientFilterV2(props: any) { onClear={() => { navigate("/patients"); setFilterState(clearFilterState); + closeFilter(); }} />
diff --git a/src/Components/Patient/SampleFilters.tsx b/src/Components/Patient/SampleFilters.tsx index 86f81564f1..88a630b353 100644 --- a/src/Components/Patient/SampleFilters.tsx +++ b/src/Components/Patient/SampleFilters.tsx @@ -81,6 +81,7 @@ export default function UserFilter(props: any) { onClick={(_) => { navigate("/sample"); setFilterState(clearFilterState); + closeFilter(); }} > diff --git a/src/Components/Resource/ListFilter.tsx b/src/Components/Resource/ListFilter.tsx index fa1372e914..42871ab76a 100644 --- a/src/Components/Resource/ListFilter.tsx +++ b/src/Components/Resource/ListFilter.tsx @@ -154,7 +154,11 @@ export default function ListFilter(props: any) { Cancel - + Clear Filters diff --git a/src/Components/Users/UserFilter.tsx b/src/Components/Users/UserFilter.tsx index a77ac1793d..5cdec9728d 100644 --- a/src/Components/Users/UserFilter.tsx +++ b/src/Components/Users/UserFilter.tsx @@ -91,6 +91,7 @@ export default function UserFilter(props: any) { onClear={() => { navigate("/users"); setFilterState(clearFilterState); + closeFilter(); }} />