fix: Initialize analysis dashboard outlet selection to all user's outlets and update anonymous function syntax.

This commit is contained in:
Yoga Pangestu 2026-01-05 22:40:23 +07:00
parent 641257d729
commit 9f73b32694
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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