Integrate review feedback
* Add ignore statement for linter * Don't shadow variable names
This commit is contained in:
parent
17eede9062
commit
d54a89d10a
1 changed files with 3 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue