From 72897557ba48e2598eab8f57ac17301b768d547a Mon Sep 17 00:00:00 2001 From: emielvdveen Date: Sat, 14 Oct 2023 13:39:35 +0200 Subject: [PATCH] Fixed bug in participant page --- core/systems/assignment/crew_page.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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