From a2427e267a0571a0916f75986cb10f75d570490d Mon Sep 17 00:00:00 2001 From: Lupu Gheorghe Date: Fri, 20 Oct 2023 15:00:37 +0300 Subject: [PATCH] fix --- app/Filament/Resources/VolunteerResource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Filament/Resources/VolunteerResource.php b/app/Filament/Resources/VolunteerResource.php index def34c3c..047ada8f 100644 --- a/app/Filament/Resources/VolunteerResource.php +++ b/app/Filament/Resources/VolunteerResource.php @@ -175,7 +175,7 @@ private static function getProjectLink(VolunteerRequest $record): HtmlString { if ($record->model_type === 'App\Models\Project') { $url = route('filament.resources.projects.view', $record->model_id); - $name = Str::words($record->model->name, 3, '...'); + $name = Str::words($record->model?->name, 3, '...'); return new HtmlString(sprintf('%s', $url, $name)); }