diff --git a/src/CalendarHelper.php b/src/CalendarHelper.php index 315b4df..14a61f2 100644 --- a/src/CalendarHelper.php +++ b/src/CalendarHelper.php @@ -872,7 +872,7 @@ class CalendarHelper extends DateHelper { // Set to the default value, reset below if another value is found. $argument = static::getDateArgumentHandler($view, $id); - if ($argument->getGranularity() == $granularity) { + if (!empty($argument) && $argument->getGranularity() == $granularity) { $displays[$view->id()][$granularity] = $display['id']; }