diff --git a/frontend/src/app/filters.ts b/frontend/src/app/filters.ts index c90bac7..52fe97d 100644 --- a/frontend/src/app/filters.ts +++ b/frontend/src/app/filters.ts @@ -111,6 +111,12 @@ export const filtersSlice = createSlice({ state.levels.selected[index] = false; } }, + resetFilters: (state) => { + state.departments = initialState.departments; + state.levels = initialState.levels; + state.units = initialState.units; + state.semesters = initialState.semesters; + }, }, }); diff --git a/frontend/src/components/SearchBar.tsx b/frontend/src/components/SearchBar.tsx index 7541de5..2177954 100644 --- a/frontend/src/components/SearchBar.tsx +++ b/frontend/src/components/SearchBar.tsx @@ -108,11 +108,19 @@ const AppliedFilters = () => { } return ( - <> +