Use array.flat instead of concat.apply
This commit is contained in:
parent
d54a89d10a
commit
1eafb235e2
1 changed files with 1 additions and 1 deletions
|
@ -382,7 +382,7 @@ import toast from './toast/toast';
|
|||
});
|
||||
}
|
||||
)).then(seasonData => {
|
||||
downloadEpisodes([].concat.apply([], seasonData.map(season => season.Items)));
|
||||
downloadEpisodes(seasonData.map(season => season.Items).flat());
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue