diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 2912467503b4e3a2ad22e0b5ead619e4e52ac503..5d91f1206d202ceb8e929e5a917c396fcdff938d 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -19,7 +19,7 @@ class ApplicationController < ActionController::Base if current_user @groups = current_user.groups @friends = current_user.friends - @group = params[:group] ? current_user.group_by_id(params[:group]) : current_user.groups.first + @group = params[:group] ? current_user.group_by_id(params[:group]) : nil end end