From d54a89d10a0eb87cdf23d66bd7c02680a80cab12 Mon Sep 17 00:00:00 2001 From: Markus Ongyerth Date: Sat, 29 Oct 2022 12:45:24 +0200 Subject: [PATCH] Integrate review feedback * Add ignore statement for linter * Don't shadow variable names --- src/components/itemContextMenu.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/itemContextMenu.js b/src/components/itemContextMenu.js index 6dc4d68b34..a0da775eaf 100644 --- a/src/components/itemContextMenu.js +++ b/src/components/itemContextMenu.js @@ -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))); }); };