diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb index e4acf7acd..f17661088 100644 --- a/app/controllers/admin_controller.rb +++ b/app/controllers/admin_controller.rb @@ -19,6 +19,8 @@ def error_reports @error_types = base_scope.select(:klass).distinct.to_a.map(&:klass) + base_scope = base_scope.includes(:community, :user) + if params[:type].present? base_scope = base_scope.where(klass: params[:type]) end