1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-18 21:35:27 -04:00

Fix manual import when season number is provided during reprocessing

This commit is contained in:
Mark McDowall
2026-01-26 16:34:29 -08:00
parent 1ef034af35
commit 52ce33a97a
2 changed files with 14 additions and 1 deletions
@@ -264,9 +264,11 @@ function InteractiveImportModalContentInner(
const { updateInteractiveImportItem } = useUpdateInteractiveImportItem();
const { updateInteractiveImportItems } = useUpdateInteractiveImportItems();
const { reprocessInteractiveImportItems } =
const { reprocessInteractiveImportItems, isReprocessing } =
useReprocessInteractiveImportItems();
const wasReprocessing = usePrevious(isReprocessing);
const items = data;
const { isDeleting, deleteEpisodeFiles, deleteError } =
@@ -826,6 +828,12 @@ function InteractiveImportModalContentInner(
translate('InteractiveImportLoadError')
);
useEffect(() => {
if (!isReprocessing && wasReprocessing) {
setReprocessingItems(new Set());
}
}, [isReprocessing, wasReprocessing]);
return (
<ModalContent onModalClose={onModalClose}>
<ModalHeader>