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:
@@ -95,7 +95,7 @@ const CoursesFilters = ({
|
||||
|
||||
const handleSearchCoursesDebounced = useCallback(
|
||||
debounce((value) => handleSearchCourses(value), 400),
|
||||
[],
|
||||
[activeOnly, archivedOnly, order, inputSearchValue],
|
||||
);
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user