Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gheorghelupu17 committed Oct 20, 2023
1 parent b6d6170 commit a2427e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Filament/Resources/VolunteerResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -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('<a href="%s">%s</a>', $url, $name));
}
Expand Down

0 comments on commit a2427e2

Please sign in to comment.