From 9f73b3269475e89ca8d3f3c7637cd56a97532aa4 Mon Sep 17 00:00:00 2001 From: Yoga Pangestu Date: Mon, 5 Jan 2026 22:40:23 +0700 Subject: [PATCH] fix: Initialize analysis dashboard outlet selection to all user's outlets and update anonymous function syntax. --- app/Livewire/Studio/Dashboard/Analysis.php | 2 +- app/Livewire/Studio/Dashboard/Overview.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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