mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 10:58:20 -07:00
Integrate review feedback
* Add ignore statement for linter * Don't shadow variable names
This commit is contained in:
parent
17eede9062
commit
d54a89d10a
@ -324,6 +324,7 @@ import toast from './toast/toast';
|
||||
const apiClient = ServerConnections.getApiClient(serverId);
|
||||
|
||||
return new Promise(function (resolve, reject) {
|
||||
// eslint-disable-next-line sonarjs/max-switch-cases
|
||||
switch (id) {
|
||||
case 'addtocollection':
|
||||
import('./collectionEditor/collectionEditor').then(({default: CollectionEditor}) => {
|
||||
@ -380,8 +381,8 @@ import toast from './toast/toast';
|
||||
Fields: 'CanDownload,Path'
|
||||
});
|
||||
}
|
||||
)).then(seasons => {
|
||||
downloadEpisodes([].concat.apply([], seasons.map(season => season.Items)));
|
||||
)).then(seasonData => {
|
||||
downloadEpisodes([].concat.apply([], seasonData.map(season => season.Items)));
|
||||
});
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user