From d60f01925e656329c12e9cc4cb316c69eb1b6def Mon Sep 17 00:00:00 2001 From: Brayan Ceron Date: Thu, 5 Dec 2024 10:50:11 -0500 Subject: [PATCH] fix: find proper courses when searching 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 --- .../tabs-section/courses-tab/courses-filters/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/studio-home/tabs-section/courses-tab/courses-filters/index.jsx b/src/studio-home/tabs-section/courses-tab/courses-filters/index.jsx index 961b15c301..acd7a8df18 100644 --- a/src/studio-home/tabs-section/courses-tab/courses-filters/index.jsx +++ b/src/studio-home/tabs-section/courses-tab/courses-filters/index.jsx @@ -95,7 +95,7 @@ const CoursesFilters = ({ const handleSearchCoursesDebounced = useCallback( debounce((value) => handleSearchCourses(value), 400), - [], + [activeOnly, archivedOnly, order, inputSearchValue], ); return (