diff --git a/app/Livewire/BoardDispatcher.php b/app/Livewire/BoardDispatcher.php index f4010ae4..f95c2289 100644 --- a/app/Livewire/BoardDispatcher.php +++ b/app/Livewire/BoardDispatcher.php @@ -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->lineup = $this->lineupsMap[$state]; + if (isset($this->lineupsMap[$state])) { + $this->lineup = $this->lineupsMap[$state]; + } else { + $this->lineup = []; + } } public function clearBox(int $boxNumber): void