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:
@@ -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
|
||||
}))
|
||||
));
|
||||
]));
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user