Skip to content

Commit

Permalink
#3896: Fix calendar aggregation error if there are no date fields wit…
Browse files Browse the repository at this point in the history
…h values yet
  • Loading branch information
gjvoosten committed Oct 27, 2021
1 parent bce4c6b commit 028c8f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/components/aggregations/CalendarWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 028c8f2

Please sign in to comment.