From c7e2bf9934a570a32a6bca48d80b3beafb14bf48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Brayan=20Cer=C3=B3n?= <86393372+bra-i-am@users.noreply.github.com> Date: Mon, 9 Dec 2024 17:44:02 -0500 Subject: [PATCH] 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 --- .../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 961b15c30..acd7a8df1 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 (