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 />