diff --git a/app/Nova/Metrics/ActiveAttendanceBreakdown.php b/app/Nova/Metrics/ActiveAttendanceBreakdown.php index c089303b7..5b250e407 100644 --- a/app/Nova/Metrics/ActiveAttendanceBreakdown.php +++ b/app/Nova/Metrics/ActiveAttendanceBreakdown.php @@ -57,7 +57,7 @@ public function calculate(Request $request): PartitionResult ->where('attendable_id', $resourceId) ->where( 'attendable_type', - $this->attendableType ?? $request?->model()?->getMorphClass() + $this->attendableType ?? $request->model()?->getMorphClass() ); }