diff --git a/app/Http/ViewComposers/Suggestions.php b/app/Http/ViewComposers/Suggestions.php index ef60b0adf..011c3c843 100644 --- a/app/Http/ViewComposers/Suggestions.php +++ b/app/Http/ViewComposers/Suggestions.php @@ -39,14 +39,10 @@ class Suggestions $installed = Module::where('company_id', session('company_id'))->where('alias', $module->alias)->first(); if ($installed) { - unset($suggestion_modules[$key]); + continue; } - } - if ($suggestion_modules) { - shuffle($suggestion_modules); - - $modules[] = $suggestion_modules[0]; + $modules[] = $module; } } }