From e661474891e9eb496227215c9aaa8b3a9d339343 Mon Sep 17 00:00:00 2001 From: salam Date: Mon, 14 Sep 2026 12:49:09 +0200 Subject: [PATCH] wip --- app/Filament/Widgets/PlayerPropsDrop.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/Filament/Widgets/PlayerPropsDrop.php b/app/Filament/Widgets/PlayerPropsDrop.php index ed8e2773..db73b97a 100644 --- a/app/Filament/Widgets/PlayerPropsDrop.php +++ b/app/Filament/Widgets/PlayerPropsDrop.php @@ -12,7 +12,6 @@ use App\Models\StatistikoDetail; use Filament\Notifications\Notification; use Filament\Widgets\Widget; use Illuminate\Support\Facades\Auth; -use Illuminate\Support\Facades\Log; use Livewire\Attributes\On; class PlayerPropsDrop extends Widget @@ -68,8 +67,6 @@ class PlayerPropsDrop extends Widget $this->team_name = SofaScoreRosa::where('ss_team_id', $team_id)->value('ss_team_name'); $this->team_id = $team_id; $this->loadPlacement(); - - $this->dispatch('update-players', players: $this->players); } #[On('lineup-update')] @@ -152,6 +149,7 @@ class PlayerPropsDrop extends Widget } } } + $this->dispatch('update-players', players: $this->players); } public function storePlacement() @@ -214,7 +212,7 @@ class PlayerPropsDrop extends Widget $this->storePlacement(); - $this->dispatch('update-players', players: $this->players); + $this->loadPlacement(); } }