mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2026-01-15 16:33:35 -03:00
Use array.flat instead of concat.apply
This commit is contained in:
@@ -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());
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user