From c0dd2e5e27ad9927c52c54cd66bfb2b3cf7890d0 Mon Sep 17 00:00:00 2001 From: Gauthier Date: Wed, 4 Jun 2025 11:15:09 +0200 Subject: [PATCH] fix(filters): display the right value when resetting the filter options (#1695) * fix(filters): display the right value when resetting the filter options When clearing the filters everything is reset but the sort option still display the previous value, while the content has now the default value. fix #1693 * fix: remove console.log --- src/components/Discover/DiscoverMovies/index.tsx | 2 +- src/components/Discover/DiscoverTv/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Discover/DiscoverMovies/index.tsx b/src/components/Discover/DiscoverMovies/index.tsx index 117ecb5b6..4f67c2050 100644 --- a/src/components/Discover/DiscoverMovies/index.tsx +++ b/src/components/Discover/DiscoverMovies/index.tsx @@ -85,7 +85,7 @@ const DiscoverMovies = () => { id="sortBy" name="sortBy" className="rounded-r-only" - value={preparedFilters.sortBy} + value={preparedFilters.sortBy || SortOptions.PopularityDesc} onChange={(e) => updateQueryParams('sortBy', e.target.value)} >