From b4fcd4382e1669137d88077edf659d0477143595 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Tue, 15 Jul 2025 11:14:48 -0500 Subject: [PATCH] Fix missing socket return in handle_pending_bounds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- lib/aprsme_web/live/map_live/historical_loader.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/aprsme_web/live/map_live/historical_loader.ex b/lib/aprsme_web/live/map_live/historical_loader.ex index 56f888b..9066c86 100644 --- a/lib/aprsme_web/live/map_live/historical_loader.ex +++ b/lib/aprsme_web/live/map_live/historical_loader.ex @@ -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