Skip to content

Commit

Permalink
Merge pull request #467 from eyra/bug-fix
Browse files Browse the repository at this point in the history
Fixed bug in participant page
  • Loading branch information
mellelieuwes authored Oct 15, 2023
2 parents 4364982 + 7289755 commit 9e07ef0
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 9e07ef0

Please sign in to comment.