Skip to content

Commit

Permalink
fix: Attempt to read property "full_name" on null
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiio committed Sep 30, 2024
1 parent 4a16034 commit 181564e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class ViewAppointment extends ViewRecord
protected function getTitle(): string
{
return __('appointment.header.view', [
'beneficiary' => $this->getRecord()->beneficiary->full_name,
'beneficiary' => $this->getRecord()->beneficiary?->full_name,
'date' => $this->getRecord()->date->toFormattedDate(),
'start_time' => $this->getRecord()->start_time,
]);
Expand Down

0 comments on commit 181564e

Please sign in to comment.