We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3e1232 commit af46598Copy full SHA for af46598
src/api/fetchShow.js
@@ -3,10 +3,11 @@ import stripTags from 'striptags';
3
4
const formatSeasons = (allEpisodes) => {
5
const seasons = [
6
- {id:0, name: "Season 1", episodes: []},
7
- {id:1, name: "Season 2", episodes: []},
8
- {id:2, name: "Season 3", episodes: []},
9
- {id:3, name: "Season 4", episodes: []}
+ {id:0, name: "Season 1", episodes: []},
+ {id:1, name: "Season 2", episodes: []},
+ {id:2, name: "Season 3", episodes: []},
+ {id:3, name: "Season 4", episodes: []},
10
+ {id:4, name: "Season 5", episodes: []},
11
];
12
13
allEpisodes.forEach((episode) => {
@@ -26,7 +27,7 @@ const fetchShow = () => {
26
27
.get("https://api.tvmaze.com/singlesearch/shows?q=stranger+things&embed=episodes")
28
.then(res => {
29
const { data } = res;
-
30
+
31
return {
32
name: data.name,
33
image: data.image,
0 commit comments