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.
This commit is contained in:
parent
070b8870df
commit
72eab2aa91
1 changed files with 10 additions and 2 deletions
|
|
@ -222,7 +222,11 @@ defmodule AprsmeWeb.MapLive.Index do
|
||||||
# Loading state management
|
# Loading state management
|
||||||
historical_loading: false,
|
historical_loading: false,
|
||||||
loading_generation: 0,
|
loading_generation: 0,
|
||||||
pending_batch_tasks: []
|
pending_batch_tasks: [],
|
||||||
|
# Add missing assigns for components
|
||||||
|
loading: false,
|
||||||
|
connection_status: "connected",
|
||||||
|
show_all_packets: true
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -260,7 +264,11 @@ defmodule AprsmeWeb.MapLive.Index do
|
||||||
slideover_open: true,
|
slideover_open: true,
|
||||||
# Track when last update occurred for real-time display in map sidebar
|
# Track when last update occurred for real-time display in map sidebar
|
||||||
# Updated when packets are processed or map bounds change
|
# 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
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue