1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-19 21:46:43 -04:00

Fixed: Manual Import multiple episode selection

Closes #5543
This commit is contained in:
Mark McDowall
2023-04-10 22:04:58 -07:00
parent b2c43fb2a6
commit 48a82ad711
2 changed files with 15 additions and 10 deletions
@@ -51,6 +51,7 @@ import {
reprocessInteractiveImportItems,
setInteractiveImportMode,
setInteractiveImportSort,
updateInteractiveImportItem,
updateInteractiveImportItems,
} from 'Store/Actions/interactiveImportActions';
import createClientSideCollectionSelector from 'Store/Selectors/createClientSideCollectionSelector';
@@ -616,13 +617,17 @@ function InteractiveImportModalContent(
);
const onEpisodesSelect = useCallback(
(episodes: SelectedEpisode[]) => {
dispatch(
updateInteractiveImportItems({
ids: selectedIds,
episodes,
})
);
(selectedEpisodes: SelectedEpisode[]) => {
selectedEpisodes.forEach((selectedEpisode) => {
const { id, episodes } = selectedEpisode;
dispatch(
updateInteractiveImportItem({
id,
episodes,
})
);
});
dispatch(reprocessInteractiveImportItems({ ids: selectedIds }));