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(); } }