Skip to content

Commit 39d0527

Browse files
authored
Merge pull request #2016 from codidact/art/admin-error-preload
Hotfix: Preload community and user for error report
2 parents e93eb4d + 23ccd78 commit 39d0527

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

app/controllers/admin_controller.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ def error_reports
1919

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

22+
base_scope = base_scope.includes(:community, :user)
23+
2224
if params[:type].present?
2325
base_scope = base_scope.where(klass: params[:type])
2426
end

0 commit comments

Comments
 (0)