1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2025-11-06 09:19:38 +02:00

Fixed: Grouped items on calendar ignoring series monitored state

Closes #5117
This commit is contained in:
Mark McDowall
2022-08-15 13:13:57 -07:00
parent 09404bacf3
commit 4b5c8a815f

View File

@@ -11,7 +11,7 @@ import formatTime from 'Utilities/Date/formatTime';
import padNumber from 'Utilities/Number/padNumber';
import styles from './CalendarEventGroup.css';
function getEventsInfo(events) {
function getEventsInfo(series, events) {
let files = 0;
let queued = 0;
let monitored = 0;
@@ -26,7 +26,7 @@ function getEventsInfo(events) {
queued++;
}
if (event.monitored) {
if (series.monitored && event.monitored) {
monitored++;
}
@@ -85,7 +85,7 @@ class CalendarEventGroup extends Component {
anyQueued,
anyMonitored,
allAbsoluteEpisodeNumbers
} = getEventsInfo(events);
} = getEventsInfo(series, events);
const anyDownloading = isDownloading || anyQueued;
const firstEpisode = events[0];
const lastEpisode = events[events.length -1];