From adf87170ad1884eaad289ec985660c2c190cfd54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Sat, 16 May 2020 14:04:52 +0300 Subject: [PATCH] Suggestions show app styles.. --- app/Http/ViewComposers/Suggestions.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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; } } }