Skip to content

Commit

Permalink
fix: our tests don't always link a calendar when creating an event
Browse files Browse the repository at this point in the history
  • Loading branch information
lexiwitch committed May 19, 2022
1 parent c867ceb commit 8f6d1fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def set_address_from_place

def require_location
# 'event', 'no_location', and 'online_only' do not require a Location
return if %w[event no_location online_only].include?(calendar.strategy)
return if %w[event no_location online_only].include?(calendar&.strategy)

# If we have an online address we don't need a physical one
return if self.online_address_id.present?
Expand Down

0 comments on commit 8f6d1fa

Please sign in to comment.