diff --git a/client/src/components/aggregations/CalendarWidget.js b/client/src/components/aggregations/CalendarWidget.js index acdd46406e..b198b70d9a 100644 --- a/client/src/components/aggregations/CalendarWidget.js +++ b/client/src/components/aggregations/CalendarWidget.js @@ -21,7 +21,7 @@ const CalendarWidget = ({ hasPrevNext }) => { const calendarComponentRef = useRef(null) - const events = GET_CALENDAR_EVENTS_FROM[valueType](values) + const events = GET_CALENDAR_EVENTS_FROM[valueType]?.(values) const history = useHistory() if (_isEmpty(events)) { return whenUnspecified