Fixed: Calendar error after queue is refreshed

pull/2900/head
Mark McDowall 5 years ago
parent fc376bfe3f
commit e10c92878d

@ -25,7 +25,7 @@ function createMissingEpisodeIdsSelector() {
moment(airDateUtc).isAfter(start) &&
moment(airDateUtc).isBefore(end) &&
isBefore(episode.airDateUtc) &&
!queueDetails.some((details) => details.episode.id === episode.id)
!queueDetails.some((details) => !!details.episode && details.episode.id === episode.id)
) {
acc.push(episode.id);
}

Loading…
Cancel
Save