This commit is contained in:
salam committed 2026-09-09 08:40:31 +02:00
1 parent 8bc59b96b3
commit 919ad14a9d
1 file changed
+6 -2
+6 -2
View File
@@ -330,11 +330,15 @@ class BoardDispatcher extends Component implements HasActions, HasSchemas, HasTa
} }
} }
public function updateLineup(string $state) public function updateLineup(?string $state)
{ {
$this->clearAll(); $this->clearAll();
$this->lineup = $this->lineupsMap[$state]; if (isset($this->lineupsMap[$state])) {
$this->lineup = $this->lineupsMap[$state];
} else {
$this->lineup = [];
}
} }
public function clearBox(int $boxNumber): void public function clearBox(int $boxNumber): void