mirror of
https://github.com/sct/overseerr.git
synced 2025-12-26 16:27:17 +01:00
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
This commit is contained in:
@@ -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)}
|
||||
>
|
||||
<option value={SortOptions.PopularityDesc}>
|
||||
|
||||
@@ -83,7 +83,7 @@ const DiscoverTv = () => {
|
||||
id="sortBy"
|
||||
name="sortBy"
|
||||
className="rounded-r-only"
|
||||
value={preparedFilters.sortBy}
|
||||
value={preparedFilters.sortBy || SortOptions.PopularityDesc}
|
||||
onChange={(e) => updateQueryParams('sortBy', e.target.value)}
|
||||
>
|
||||
<option value={SortOptions.PopularityDesc}>
|
||||
|
||||
Reference in New Issue
Block a user