mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-20 02:22:09 +00:00
videos for season fixed if season not set
This commit is contained in:
parent
6a20cbe885
commit
e21caea725
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ const useSelectableSeasons = (videos) => {
|
|||
}, []);
|
||||
const videosForSeason = React.useMemo(() => {
|
||||
return state.videos.filter((video) => {
|
||||
return video.season === state.selectedSeason;
|
||||
return state.selectedSeason === null || video.season === state.selectedSeason;
|
||||
});
|
||||
}, [state.videos, state.selectedSeason]);
|
||||
React.useEffect(() => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue