From 7776cd991a0e46ef413324c035a6dbc60b9e4567 Mon Sep 17 00:00:00 2001 From: Inhji Date: Thu, 9 Mar 2023 21:46:07 +0100 Subject: [PATCH] fix incorrect usage of variables in heex template --- lib/chiya_web/live/note_show_live.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/chiya_web/live/note_show_live.ex b/lib/chiya_web/live/note_show_live.ex index f81e2ff..4bf8412 100644 --- a/lib/chiya_web/live/note_show_live.ex +++ b/lib/chiya_web/live/note_show_live.ex @@ -6,6 +6,7 @@ defmodule ChiyaWeb.NoteShowLive do @impl true def render(assigns) do channels = Enum.map_join(assigns.note.channels, ", ", fn c -> c.name end) + assigns = assign(assigns, :channels, channels) ~H""" <.header> @@ -25,7 +26,7 @@ defmodule ChiyaWeb.NoteShowLive do <:item title="Published at"><%= @note.published_at %> <:item title="Kind"><%= @note.kind %> <:item title="Url"><%= @note.url %> - <:item title="Channels"><%= channels %> + <:item title="Channels"><%= @channels %> <.line />