Skip to content

Commit

Permalink
Fixed bug in participant page
Browse files Browse the repository at this point in the history
  • Loading branch information
mellelieuwes committed Oct 14, 2023
1 parent 4364982 commit 7289755
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/systems/assignment/crew_page.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7289755

Please sign in to comment.