Skip to content

Commit 3879bd1

Browse files
committed
Preload community and user for error report
1 parent 38c6dc0 commit 3879bd1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/controllers/admin_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def error_reports
1515
ErrorLog.all
1616
else
1717
ErrorLog.where(community: RequestContext.community)
18-
end
18+
end.includes(:community, :user)
1919

2020
@error_types = base_scope.select(:klass).distinct.to_a.map(&:klass)
2121

0 commit comments

Comments
 (0)