[feat]Center happening now events on the splashpage

This commit is contained in:
Jimmy 2021-04-07 11:00:03 +08:00 committed by CactusPuppy
parent 3b96d9e63e
commit 71d926b4a0
No known key found for this signature in database
GPG key ID: 4B33B0A3E15E2C82
2 changed files with 4 additions and 5 deletions

View file

@ -82,7 +82,7 @@ module ConferenceHelper
events_schedules = conference.program.selected_event_schedules(
includes: [:room, { event: %i[track event_type speakers submitter] }]
).select(&:happening_now?)
events_schedules = [] unless events_schedules
events_schedules ||= []
events_schedules
end
end