Fix missing socket return in handle_pending_bounds
The function was sending a message but not returning the socket, causing an ArgumentError when the result was passed to assign/3. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
bf1c8a0b05
commit
b4fcd4382e
1 changed files with 2 additions and 1 deletions
|
|
@ -278,8 +278,9 @@ defmodule AprsmeWeb.MapLive.HistoricalLoader do
|
|||
defp update_loading_status(socket, true), do: assign(socket, :historical_loading, false)
|
||||
defp update_loading_status(socket, false), do: socket
|
||||
|
||||
defp handle_pending_bounds(%{assigns: %{pending_bounds: pending}} = _socket, true) when not is_nil(pending) do
|
||||
defp handle_pending_bounds(%{assigns: %{pending_bounds: pending}} = socket, true) when not is_nil(pending) do
|
||||
send(self(), {:process_pending_bounds})
|
||||
socket
|
||||
end
|
||||
|
||||
defp handle_pending_bounds(socket, _), do: socket
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue