diff --git a/app/Livewire/MapperLeft.php b/app/Livewire/MapperLeft.php index 14f93052..1492f8cd 100644 --- a/app/Livewire/MapperLeft.php +++ b/app/Livewire/MapperLeft.php @@ -75,7 +75,7 @@ class MapperLeft extends Component implements HasActions, HasSchemas, HasTable TextColumn::make('competition_group.name')->label('Group') ->wrap() ->tooltip('Click to filter by this group') - ->description(fn ($record): string => $record->country->name) + ->description(fn ($record): string => $record->country?->name ?? '') ->action(function ($record) { if (! in_array($record->competition_group_id, $this->tableFilters['events']['competition_group_id'])) { $this->tableFilters['events']['competition_group_id'][] = (string) $record->competition_group_id;