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:
parent
052e131400
commit
c873614bf1
1 changed files with 2 additions and 2 deletions
|
|
@ -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 ->
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue