Skip to content
This repository has been archived by the owner on Jan 6, 2024. It is now read-only.

Commit

Permalink
Fix false error in web portal
Browse files Browse the repository at this point in the history
  • Loading branch information
darkalfx committed Oct 6, 2021
1 parent 59c2889 commit 1bc9699
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,15 +311,15 @@ export function loadRadarrTags(forceReload) {
})
.then(data => data.json())
.then(data => {
dispatch(setRadarrTags(data));
dispatch(setRadarrTags({ ok: true, data: data }));

return {
ok: true,
tags: data
}
})
.catch(err => {
dispatch(setRadarrTags([]));
dispatch(setRadarrTags({ ok: false, data: [] }));
return { ok: false };
})
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -329,15 +329,15 @@ export function loadSonarrTags(forceReload) {
})
.then(data => data.json())
.then(data => {
dispatch(setSonarrTags(data));
dispatch(setSonarrTags({ ok: true, data: data }));

return {
ok: true,
tags: data
}
})
.catch(err => {
dispatch(setSonarrTags([]));
dispatch(setSonarrTags({ ok: false, data: [] }));
return { ok: false };
})
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ export default function RadarrClientsReducer(state = {}, action) {

newRadarr.isLoadingTags = false;
newRadarr.hasLoadedTags = true;
newRadarr.areTagsValid = action.payload.length > 0;
newRadarr.tags = action.payload;
newRadarr.areTagsValid = action.payload.ok;
newRadarr.tags = action.payload.data;

newState.radarr = newRadarr;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ export default function SonarrClientsReducer(state = {}, action) {

newSonarr.isLoadingTags = false;
newSonarr.hasLoadedTags = true;
newSonarr.areTagsValid = action.payload.length > 0;
newSonarr.tags = action.payload;
newSonarr.areTagsValid = action.payload.ok;
newSonarr.tags = action.payload.data;

newState.sonarr = newSonarr;

Expand Down

0 comments on commit 1bc9699

Please sign in to comment.