mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
Fixed: Queue count badge showing warning/error incorrectly
This commit is contained in:
parent
0c8cdd2257
commit
a4d2ed6f31
3 changed files with 17 additions and 5 deletions
|
@ -12,8 +12,12 @@ function createMapStateToProps() {
|
|||
(state) => state.queue.options.includeUnknownArtistItems,
|
||||
(app, status, includeUnknownArtistItems) => {
|
||||
const {
|
||||
errors,
|
||||
warnings,
|
||||
unknownErrors,
|
||||
unknownWarnings,
|
||||
count,
|
||||
unknownCount
|
||||
totalCount
|
||||
} = status.item;
|
||||
|
||||
return {
|
||||
|
@ -21,7 +25,9 @@ function createMapStateToProps() {
|
|||
isReconnecting: app.isReconnecting,
|
||||
isPopulated: status.isPopulated,
|
||||
...status.item,
|
||||
count: includeUnknownArtistItems ? count : count - unknownCount
|
||||
count: includeUnknownArtistItems ? totalCount : count,
|
||||
errors: includeUnknownArtistItems ? errors || unknownErrors : errors,
|
||||
warnings: includeUnknownArtistItems ? warnings || unknownWarnings : warnings
|
||||
};
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue