diff --git a/website/common/script/content/constants/schedule.js b/website/common/script/content/constants/schedule.js index a8b7f671b9..c09179de2f 100644 --- a/website/common/script/content/constants/schedule.js +++ b/website/common/script/content/constants/schedule.js @@ -862,7 +862,12 @@ export function getAllScheduleMatchingGroups (date) { } }); } - if (!cachedScheduleMatchers[type]) { + return cachedScheduleMatchers; +} + +export function getScheduleMatchingGroup (type, date) { + const matchingGroups = getAllScheduleMatchingGroups(date); + if (!matchingGroups[type]) { // No matchers exist for this type return { items: [],