Commit 4140695e authored by Nathan Friend's avatar Nathan Friend

Merge branch 'remove-duplicate-db-query-dashboard-snippets' into 'master'

Remove duplicate db query in dashboard snippets

See merge request gitlab-org/gitlab!30277
parents 1d38a775 6007450c
......@@ -6,8 +6,6 @@
= render 'dashboard/snippets_head'
- if current_user.snippets.exists?
= render partial: 'snippets/snippets_scope_menu', locals: { include_private: true, counts: @snippet_counts }
- if current_user.snippets.exists?
= render partial: 'shared/snippets/list', locals: { link_project: true }
- else
= render 'shared/empty_states/snippets', button_path: button_path
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment