This commit is contained in:
salam committed 2026-10-15 16:46:13 +02:00
1 parent 55f31acf2a
commit c8858574c1
2 files changed
+12 -6

No files matched your search

+4 -3
View File
@@ -97,10 +97,11 @@ class PlayerProps extends Page implements HasForms
}
#[On('team-update')]
public function syncData()
public function syncData($team_id)
{
if ($this->team_id) {
$this->clientLineUps = SsLineupMemory::where('team_id', $this->team_id)->where('client_id', Auth::user()->client_id)->pluck('lineup')->toArray();
if ($team_id) {
$this->team_id = $team_id;
$this->clientLineUps = SsLineupMemory::where('team_id', $team_id)->where('client_id', Auth::user()->client_id)->pluck('lineup')->toArray();
} else {
$this->players = [];
$this->dispatch('clear-all');