Skip to content

Commit

Permalink
fix calendar totals for empty weeks (#2581)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpapst authored May 21, 2021
1 parent 70fd0ae commit df6bd30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/calendar/user.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@
{# TODO split day entries are calculated only for the begin date #}
var $element = jQuery("#dailytotal-" + moment(event.start).format("YYYY-MM-DD"));
var ids = $element.data('ids');
if (ids === null) {
if (ids === null || ids === undefined) {
ids = '';
}
Expand Down

0 comments on commit df6bd30

Please sign in to comment.