From 18eb6ac3d33d1d5d5f74debe203718446c931c72 Mon Sep 17 00:00:00 2001 From: Michael Ball Date: Sat, 1 Aug 2020 08:08:56 -0700 Subject: [PATCH] Patch for nil event schedules --- app/views/proposals/show.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/proposals/show.html.haml b/app/views/proposals/show.html.haml index 733ed8e5..e512ea87 100644 --- a/app/views/proposals/show.html.haml +++ b/app/views/proposals/show.html.haml @@ -24,7 +24,7 @@ = join_event_link(@event, current_user) .col-md-4 %p{style: "margin-top: 20px"} - - if @event_schedule.start_time + - if @event_schedule&.start_time = link_to google_calendar_link(@event_schedule), target: '_blank', class: 'btn btn-success' do %i.fa.fa-calendar Google Calendar