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:
Graham McIntire 2025-07-15 11:14:48 -05:00
parent bf1c8a0b05
commit b4fcd4382e
No known key found for this signature in database

View file

@ -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