Skip to content

Commit

Permalink
fix: find proper courses when searching (#1497)
Browse files Browse the repository at this point in the history
When active/archived filters were on or there was selected any order filter, the search skipped these values and it was just returned the courses list without the respective filters. Additionally, when a search keyword was applied and a filter was selected, the keyword stayed stuck and the search list returned were not the appropriate
  • Loading branch information
bra-i-am authored Dec 9, 2024
1 parent 73490a5 commit c7e2bf9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const CoursesFilters = ({

const handleSearchCoursesDebounced = useCallback(
debounce((value) => handleSearchCourses(value), 400),
[],
[activeOnly, archivedOnly, order, inputSearchValue],
);

return (
Expand Down

0 comments on commit c7e2bf9

Please sign in to comment.