This commit is contained in:
salam committed 2026-09-12 15:22:08 +02:00
1 parent da528df0e7
commit a7de253291
3 files changed
+9 -8

No files matched your search

+4 -1
View File
@@ -328,6 +328,10 @@ class BoardDispatcher extends Component implements HasActions, HasSchemas, HasTa
return;
}
// dd(Auth::user());
// "client_id" => 1
// "sport_id" => 1
// when drag from field to field remove from prviouse field to prevent doubles
foreach ($this->boxes as $k => $record) {
if (count($record) && $record['id'] == (int) $player['id']) {
@@ -365,7 +369,6 @@ class BoardDispatcher extends Component implements HasActions, HasSchemas, HasTa
public function clearBox(int $boxNumber): void
{
if (isset($this->boxes[$boxNumber])) {
$tmp = $this->boxes[$boxNumber];
$player_id = 0;