mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 06:52:33 -05:00
fix n+1
This commit is contained in:
1 parent
640b451727
commit
6ffc88b4ed
2 files changed
+2
-2
No files matched your search
@@ -438,7 +438,7 @@ module Submissions
|
||||
|
||||
composer.text(I18n.t('event_log'), font_size: 12, padding: [10, 0, 20, 0])
|
||||
|
||||
submitter_versions_index = submission.submitters.each_with_object({}) do |s, h|
|
||||
submitter_versions_index = submission.submitters.preload(:submitter_versions).each_with_object({}) do |s, h|
|
||||
h[s.id] = s.submitter_versions.to_a.sort_by(&:created_at)
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user