Fix compilation error by importing push_patch

- Add push_patch to Phoenix.LiveView imports
- Fix trailing whitespace issue
- App now compiles successfully with URL functionality
This commit is contained in:
Graham McIntire 2025-07-09 09:25:52 -05:00
parent 052e131400
commit c873614bf1
No known key found for this signature in database

View file

@ -5,7 +5,7 @@ defmodule AprsmeWeb.MapLive.Index do
use AprsmeWeb, :live_view
import AprsmeWeb.TimeHelpers, only: [time_ago_in_words: 1]
import Phoenix.LiveView, only: [connected?: 1, push_event: 3, push_navigate: 2]
import Phoenix.LiveView, only: [connected?: 1, push_event: 3, push_navigate: 2, push_patch: 2]
alias AprsmeWeb.Endpoint
alias AprsmeWeb.MapLive.MapHelpers
@ -31,7 +31,7 @@ defmodule AprsmeWeb.MapLive.Index do
end
end
# Parse longitude (lng parameter)
# Parse longitude (lng parameter)
lng =
case Map.get(params, "lng") do
nil ->