Skip to content

Commit

Permalink
style(2_bugs): Lint and Spec
Browse files Browse the repository at this point in the history
  • Loading branch information
richardmatthewsdev committed Jan 12, 2024
1 parent d2b3632 commit 93ac479
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/views/schedules/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,10 @@
</div>

<div class='col-2'>
<%= form.select :destination_id, options_from_collection_for_select(@destinations, 'id', 'name', @schedule.destination.id), {},
<%= form.select :destination_id,
options_from_collection_for_select(
@destinations, 'id', 'name', @schedule.destination&.id
), {},
class: 'form-select' %>
</div>
</div>
Expand Down

0 comments on commit 93ac479

Please sign in to comment.