diff options
Diffstat (limited to 'app/controllers/concerns/metrics_dashboard.rb')
-rw-r--r-- | app/controllers/concerns/metrics_dashboard.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/concerns/metrics_dashboard.rb b/app/controllers/concerns/metrics_dashboard.rb index 338c3af235b..7e202235cfa 100644 --- a/app/controllers/concerns/metrics_dashboard.rb +++ b/app/controllers/concerns/metrics_dashboard.rb @@ -79,7 +79,7 @@ module MetricsDashboard end def starred_dashboards - @starred_dashboards ||= begin + @starred_dashboards ||= if project_for_dashboard.present? ::Metrics::UsersStarredDashboardsFinder .new(user: current_user, project: project_for_dashboard) @@ -89,7 +89,6 @@ module MetricsDashboard else Set.new end - end end # Project is not defined for group and admin level clusters. |