Skip to content
Snippets Groups Projects
Commit f55d75ff authored by Arnaud Levy's avatar Arnaud Levy
Browse files

Fix #2785

parent b8a59cfe
No related branches found
No related tags found
No related merge requests found
......@@ -117,10 +117,10 @@ class Communication::Website::Agenda::Event::Localization < ApplicationRecord
if event.time_slots.any?
time_slot = event.time_slots.ordered.first
time_slot_l10n = time_slot.localization_for(language)
time_slot_l10n.hugo(website)
time_slot_l10n&.hugo(website)
elsif event.days.any?
day = event.days.ordered.first
day.hugo(website)
day&.hugo(website)
else
super(website)
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment