Skip to content

Commit

Permalink
fix(2_bugs): Edit Schedule Destination
Browse files Browse the repository at this point in the history
Retain the selected destination on the schedule form.
  • Loading branch information
richardmatthewsdev committed Jan 12, 2024
1 parent 5e87ee0 commit d2b3632
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/schedules/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
</div>

<div class='col-2'>
<%= form.select :destination_id, options_from_collection_for_select(@destinations, 'id', 'name'), {},
<%= 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 d2b3632

Please sign in to comment.