Skip to content

Commit

Permalink
Fixes Rollbar error #526
Browse files Browse the repository at this point in the history
NoMethodError: undefined method 'venue' for nil:NilClass when looking up meeting in meetings_controller.rb
  • Loading branch information
matyikriszta committed Dec 11, 2023
1 parent f1f225a commit 888aa88
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/controllers/meetings_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ def show
private

def set_meeting
@meeting = Meeting.find_by(slug: params[:id])
@map_address = AddressPresenter.new(@meeting.venue.address).for_map
@meeting = Meeting.find_by!(slug: params[:id])
end
end

0 comments on commit 888aa88

Please sign in to comment.