diff --git a/core/systems/assignment/crew_page.ex b/core/systems/assignment/crew_page.ex index 53143592c..30d99f099 100644 --- a/core/systems/assignment/crew_page.ex +++ b/core/systems/assignment/crew_page.ex @@ -63,8 +63,8 @@ defmodule Systems.Assignment.CrewPage do socket |> assign(selected_item_id: nil) end - defp update_selected_item_id(%{assigns: %{vm: %{items: [item]}}} = socket) do - socket |> assign(selected_item_id: item.id) + defp update_selected_item_id(%{assigns: %{vm: %{items: [{%{id: id}, _}]}}} = socket) do + socket |> assign(selected_item_id: id) end defp update_selected_item_id(%{assigns: %{vm: %{items: items}}} = socket) do