diff --git a/app/Livewire/Studio/Dashboard/Analysis.php b/app/Livewire/Studio/Dashboard/Analysis.php index 91682de..f8a371f 100644 --- a/app/Livewire/Studio/Dashboard/Analysis.php +++ b/app/Livewire/Studio/Dashboard/Analysis.php @@ -85,7 +85,7 @@ public function mount(): void { $this->outlets = auth()->user()->outlets()->get()->pluck('name', 'id')->toArray(); - $this->selectedOutletIds = []; + $this->selectedOutletIds = auth()->user()->outlets()->pluck('outlets.id')->toArray(); } public function render(): View diff --git a/app/Livewire/Studio/Dashboard/Overview.php b/app/Livewire/Studio/Dashboard/Overview.php index aa748b5..2d5fec5 100644 --- a/app/Livewire/Studio/Dashboard/Overview.php +++ b/app/Livewire/Studio/Dashboard/Overview.php @@ -46,7 +46,7 @@ public function mount(): void { $this->outlets = auth()->user()->outlets()->get()->pluck('name', 'id')->toArray(); - $this->selectedOutletIds = []; + $this->selectedOutletIds = auth()->user()->outlets()->pluck('outlets.id')->toArray(); } public function render(): View