fix: find proper courses when searching (#1497)

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
This commit is contained in:
Brayan Cerón
2024-12-09 17:44:02 -05:00
committed by GitHub
parent 73490a5741
commit c7e2bf9934

View File

@@ -95,7 +95,7 @@ const CoursesFilters = ({
const handleSearchCoursesDebounced = useCallback(
debounce((value) => handleSearchCourses(value), 400),
[],
[activeOnly, archivedOnly, order, inputSearchValue],
);
return (