From e10c92878d5d266ce7b4e2bb04680910605045ca Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Tue, 1 Jan 2019 16:20:11 -0800 Subject: [PATCH] Fixed: Calendar error after queue is refreshed --- frontend/src/Calendar/CalendarPageConnector.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/Calendar/CalendarPageConnector.js b/frontend/src/Calendar/CalendarPageConnector.js index 74261c0cd..9ed29c4ae 100644 --- a/frontend/src/Calendar/CalendarPageConnector.js +++ b/frontend/src/Calendar/CalendarPageConnector.js @@ -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); }