From 72eab2aa913fe2d0b78983e300b14f5bc00d291a Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Sun, 12 Oct 2025 11:47:05 -0500 Subject: [PATCH] fix: add missing assigns for LiveView components The recent refactor removed loading and connection_status assigns which were required by the slideover_panel component, causing the app to crash on startup. This adds back the missing assigns with default values. --- lib/aprsme_web/live/map_live/index.ex | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/aprsme_web/live/map_live/index.ex b/lib/aprsme_web/live/map_live/index.ex index 41e73f2..dc0b9f3 100644 --- a/lib/aprsme_web/live/map_live/index.ex +++ b/lib/aprsme_web/live/map_live/index.ex @@ -222,7 +222,11 @@ defmodule AprsmeWeb.MapLive.Index do # Loading state management historical_loading: false, loading_generation: 0, - pending_batch_tasks: [] + pending_batch_tasks: [], + # Add missing assigns for components + loading: false, + connection_status: "connected", + show_all_packets: true ) end @@ -260,7 +264,11 @@ defmodule AprsmeWeb.MapLive.Index do slideover_open: true, # Track when last update occurred for real-time display in map sidebar # Updated when packets are processed or map bounds change - last_update_at: DateTime.utc_now() + last_update_at: DateTime.utc_now(), + # Add missing assigns for components + loading: false, + connection_status: "connected", + show_all_packets: true ) end