diff --git a/app/views/conferences/show.html.erb b/app/views/conferences/show.html.erb index f5c4bf360e6886d0ca8306e6dea45356139b8c4d..f263a33a8c9c068f3e378ed4e3622753e18f3b09 100644 --- a/app/views/conferences/show.html.erb +++ b/app/views/conferences/show.html.erb @@ -80,6 +80,10 @@ current_time = Time.zone.now.in_time_zone(@conference.time_zone) const pixelsPerHour = <%= pixels_per_hour %>; const currentTimeDiv = document.querySelector('#<%= date.strftime('day-%Y-%m-%d') %> .current-time'); + if (!currentTimeDiv) { + return; + } + if ( currentTime.toDateString() === timelineStartsAt.toDateString() && currentTime >= timelineStartsAt &&