From a8e4fbb7b64a013ffff5a618bcc5955a09e4b5d3 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 11 Feb 2023 10:17:08 +0100 Subject: [PATCH] Fix issue with preferences object. --- app/Http/Controllers/PreferencesController.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/Http/Controllers/PreferencesController.php b/app/Http/Controllers/PreferencesController.php index be8226b255..9cf77680b1 100644 --- a/app/Http/Controllers/PreferencesController.php +++ b/app/Http/Controllers/PreferencesController.php @@ -96,9 +96,7 @@ class PreferencesController extends Controller ksort($groupedAccounts); $accountIds = $accounts->pluck('id')->toArray(); - $viewRangePref = app('navigation')->getViewRange(false); - - $viewRange = $viewRangePref->data; + $viewRange = app('navigation')->getViewRange(false); $frontPageAccounts = app('preferences')->get('frontPageAccounts', $accountIds); $language = app('steam')->getLanguage(); $languages = config('firefly.languages');