Skip to content

Commit

Permalink
hm
Browse files Browse the repository at this point in the history
  • Loading branch information
meagonqz committed Jul 30, 2019
1 parent 542e6bc commit f29e79f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ defmodule SiteWeb.ScheduleController.ScheduleApi do
end

def prune_schedules_by_stop(schedules, stop_id) do
Enum.drop_while(schedules, fn schedule -> schedule.stop.id !== stop_id end)
Enum.drop_while(schedules, fn schedule -> schedule.stop && schedule.stop.id !== stop_id end)
end

def enhance_services([]), do: []
Expand Down

0 comments on commit f29e79f

Please sign in to comment.