fix: Initialize analysis dashboard outlet selection to all user's outlets and update anonymous function syntax.
This commit is contained in:
parent
641257d729
commit
9f73b32694
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user