diff --git a/lib/dotcom_web/live/trip_planner.ex b/lib/dotcom_web/live/trip_planner.ex index 24ca238d9c..c9fa1cd0ab 100644 --- a/lib/dotcom_web/live/trip_planner.ex +++ b/lib/dotcom_web/live/trip_planner.ex @@ -209,9 +209,11 @@ defmodule DotcomWeb.Live.TripPlanner do points: itinerary_groups_to_points(socket.assigns.results.itinerary_groups, index) } + new_results = %{itinerary_group_selection: index, itinerary_selection: 0} + new_socket = socket - |> assign(:results, Map.put(socket.assigns.results, :itinerary_group_selection, index)) + |> assign(:results, Map.merge(socket.assigns.results, new_results)) |> assign(:map, Map.merge(socket.assigns.map, new_map)) {:noreply, new_socket}