wip
This commit is contained in:
1 parent
55f31acf2a
commit
c8858574c1
2 files changed
+12
-6
No files matched your search
@@ -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');
|
||||
|
||||
Reference in new issue
Block a user