1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-27 23:06:29 -04:00

Fixed: Import series spinning forever when error is returned

Fixes #3944
This commit is contained in:
Mark McDowall
2020-09-08 14:17:25 -07:00
parent b2737a3d35
commit b35fd7e507
4 changed files with 61 additions and 17 deletions
@@ -249,7 +249,8 @@ export const actionHandlers = handleThunks({
set({
section,
isImporting: false,
isImported: true
isImported: true,
importError: null
}),
...data.map((series) => updateItem({ section: 'series', ...series })),
@@ -261,19 +262,19 @@ export const actionHandlers = handleThunks({
});
promise.fail((xhr) => {
dispatch(batchActions(
dispatch(batchActions([
set({
section,
isImporting: false,
isImported: true
isImported: true,
importError: xhr
}),
addedIds.map((id) => updateItem({
...addedIds.map((id) => updateItem({
section,
id,
importError: xhr
id
}))
));
]));
});
}
});