From fba98e9d441062a04e02ddcf90c58909ed5d59a8 Mon Sep 17 00:00:00 2001 From: Ratheesh kumar R <108045773+ratheesh-aot@users.noreply.github.com> Date: Thu, 28 Mar 2024 09:11:13 -0700 Subject: [PATCH] [To Main] DESENG-525: Resetting engagement list on reset button (#2431) * DESENG-525: Resetting engagement list on reset button * Fixed changelog --- CHANGELOG.MD | 5 +++++ .../engagement/listing/AdvancedSearch/SearchComponent.tsx | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/CHANGELOG.MD b/CHANGELOG.MD index 47bda6c42..2836c0aeb 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -1,3 +1,8 @@ +## March 27, 2024 + +- **Bug Fix**: MET - Engagement tab does not revert the filtered out data [DESENG-525](https://apps.itsm.gov.bc.ca/jira/browse/DESENG-525) + - Resetting search filter values invoke the list to reload + ## March 26, 2024 - **Bug Fix**: Various bugs in the survey tab [DESENG-520](https://apps.itsm.gov.bc.ca/jira/browse/DESENG-523) diff --git a/met-web/src/components/engagement/listing/AdvancedSearch/SearchComponent.tsx b/met-web/src/components/engagement/listing/AdvancedSearch/SearchComponent.tsx index c0b94a9bd..411751811 100644 --- a/met-web/src/components/engagement/listing/AdvancedSearch/SearchComponent.tsx +++ b/met-web/src/components/engagement/listing/AdvancedSearch/SearchComponent.tsx @@ -94,6 +94,14 @@ const AdvancedSearch: React.FC = ({ setFilterParams }) => { publishedFromDate: '', publishedToDate: '', }); + // reset the search params to empty also invoke the list to reload + setFilterParams({ + status_list: [], + created_from_date: '', + created_to_date: '', + published_from_date: '', + published_to_date: '', + }); }; return (