Fix empty torrents returned as array in show episodes
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
The show episodes can handle undefined values themselves.
This commit is contained in:
parent
7cce0052f8
commit
e3fb75a4ad
@ -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(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user