Commit 6007450c authored by Qingyu Zhao's avatar Qingyu Zhao

Remove duplicate db query in dashboard snippets

parent fbf363a8
...@@ -6,8 +6,6 @@ ...@@ -6,8 +6,6 @@
= render 'dashboard/snippets_head' = render 'dashboard/snippets_head'
- if current_user.snippets.exists? - if current_user.snippets.exists?
= render partial: 'snippets/snippets_scope_menu', locals: { include_private: true, counts: @snippet_counts } = 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 } = render partial: 'shared/snippets/list', locals: { link_project: true }
- else - else
= render 'shared/empty_states/snippets', button_path: button_path = 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