Skip to content

Commit

Permalink
Merge pull request #15275 from opf/bug/54142-log-time-modal-needs-ext…
Browse files Browse the repository at this point in the history
…remly-long-to-open

Avoid instantiating ProjectRepresenter if it is not embedded anyway
  • Loading branch information
cbliard committed Apr 16, 2024
2 parents 683710f + 40462d0 commit 1f65b10
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ class TimeEntriesActivityRepresenter < ::API::Decorators::Single
end
},
getter: ->(*) {
next unless embed_links

active_projects.map do |project|
Projects::ProjectRepresenter.create(project, current_user:)
end
Expand Down

0 comments on commit 1f65b10

Please sign in to comment.