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.
This commit is contained in:
parent
1a92b89ca8
commit
5491bafc31
2 changed files with 9 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -199,16 +199,12 @@ defmodule AprsmeWeb.MapLive.Components do
|
|||
|
||||
defp packet_list(assigns) do
|
||||
~H"""
|
||||
<div id="packets" class="flex-1 overflow-y-auto p-4 space-y-3" phx-update="stream">
|
||||
<%= if @packets == [] do %>
|
||||
<div class="text-center text-gray-500 py-8">
|
||||
No packets received yet...
|
||||
</div>
|
||||
<% else %>
|
||||
<div class="flex-1 overflow-y-auto p-4">
|
||||
<div id="packets" class="space-y-3" phx-update="stream">
|
||||
<div :for={{id, packet} <- @packets} id={id}>
|
||||
<.packet_card packet={packet} />
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
"""
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue