Prevent extra load of @groups when view is document response is HTML
We don't need to load @groups when the server responds with HTML for /dashboard/groups since all data is loaded via AJAX.
We only use @groups to check if there's any group in order to show the empty view. We can handle that on the client so we can remove that line of code.
Is that what you meant @vsizov?
Edited by Alfredo Sumaran