From 5491bafc315669e1c92e60026a54fec8cbf84ad9 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Sun, 12 Oct 2025 12:16:27 -0500 Subject: [PATCH] fix: remove invalid empty state from stream container The phx-update="stream" directive requires all direct children to have IDs. Removed the conditional empty state message that was causing client-side errors. --- CHANGELOG.md | 6 ++++++ lib/aprsme_web/live/map_live/components.ex | 10 +++------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b26c88..70c7eec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed +- Fixed "no available server" deployment issue caused by incorrect HEEx class attribute syntax + - Corrected tuple-style class attributes to proper conditional syntax + - Fixed missing assigns (loading, connection_status, show_all_packets) in LiveView + - Changed @streams.packets reference to @packets in template + ### Added - Database fields for APRS items and objects support: - `item_name`, `object_name` fields to identify items/objects diff --git a/lib/aprsme_web/live/map_live/components.ex b/lib/aprsme_web/live/map_live/components.ex index 5fbb458..d8d43fa 100644 --- a/lib/aprsme_web/live/map_live/components.ex +++ b/lib/aprsme_web/live/map_live/components.ex @@ -199,16 +199,12 @@ defmodule AprsmeWeb.MapLive.Components do defp packet_list(assigns) do ~H""" -
- <%= if @packets == [] do %> -
- No packets received yet... -
- <% else %> +
+
<.packet_card packet={packet} />
- <% end %> +
""" end