From 919ad14a9d7304d5cc98e7d72b5e221fa03fb91d Mon Sep 17 00:00:00 2001 From: salam Date: Wed, 9 Sep 2026 08:40:31 +0200 Subject: [PATCH] wip --- app/Livewire/BoardDispatcher.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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