From 56fbf30e07b2709c743b4e1d55c0a98ddf54af94 Mon Sep 17 00:00:00 2001 From: salam Date: Sun, 8 Feb 2026 16:07:20 +0100 Subject: [PATCH] wip --- app/Livewire/MapperLeft.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Livewire/MapperLeft.php b/app/Livewire/MapperLeft.php index a3333a1e..5f255f66 100644 --- a/app/Livewire/MapperLeft.php +++ b/app/Livewire/MapperLeft.php @@ -77,7 +77,7 @@ class MapperLeft extends Component implements HasActions, HasSchemas, HasTable ->tooltip('Click to filter by this group') ->description(fn ($record): string => $record->country?->name ?? '') ->action(function ($record) { - if (! in_array($record->competition_group_id, $this->tableFilters['events']['competition_group_id'])) { + if ($record?->competition_group_id && ! in_array($record->competition_group_id, $this->tableFilters['events']['competition_group_id'])) { $this->tableFilters['events']['competition_group_id'][] = (string) $record->competition_group_id; $this->dispatch('refreshMapperRight'); }