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);
|
const apiClient = ServerConnections.getApiClient(serverId);
|
||||||
|
|
||||||
return new Promise(function (resolve, reject) {
|
return new Promise(function (resolve, reject) {
|
||||||
|
// eslint-disable-next-line sonarjs/max-switch-cases
|
||||||
switch (id) {
|
switch (id) {
|
||||||
case 'addtocollection':
|
case 'addtocollection':
|
||||||
import('./collectionEditor/collectionEditor').then(({default: CollectionEditor}) => {
|
import('./collectionEditor/collectionEditor').then(({default: CollectionEditor}) => {
|
||||||
|
@ -380,8 +381,8 @@ import toast from './toast/toast';
|
||||||
Fields: 'CanDownload,Path'
|
Fields: 'CanDownload,Path'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
)).then(seasons => {
|
)).then(seasonData => {
|
||||||
downloadEpisodes([].concat.apply([], seasons.map(season => season.Items)));
|
downloadEpisodes([].concat.apply([], seasonData.map(season => season.Items)));
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue