Skip to content

Commit

Permalink
Don't try to represent meeting if it isn't set yet
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverguenther committed Mar 5, 2024
1 parent 290def2 commit 3e3f2bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/meeting/app/forms/meeting_agenda_item/notes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ def initialize(disabled: false)
end

def resource
return unless object&.meeting

API::V3::Meetings::MeetingRepresenter
.new(object.meeting, current_user: User.current, embed_links: false)
end
Expand Down

0 comments on commit 3e3f2bc

Please sign in to comment.