Fix empty torrents returned as array in show episodes
All checks were successful
continuous-integration/drone/push Build is passing

The show episodes can handle undefined values themselves.
This commit is contained in:
Grégoire Delattre 2020-04-09 11:02:34 +02:00
parent 7cce0052f8
commit e3fb75a4ad

View File

@ -19,10 +19,8 @@ export const EpisodeTorrentsButton = ({ season, episode }) => {
? state.show.show.seasons.get(season).get(episode).fetching ? state.show.show.seasons.get(season).get(episode).fetching
: false : false
); );
const torrents = useSelector((state) => const torrents = useSelector(
state.show.show.seasons.get(season).get(episode).torrents (state) => state.show.show.seasons.get(season).get(episode).torrents
? state.show.show.seasons.get(season).get(episode).torrents
: []
); );
const url = useSelector( const url = useSelector(