Quellcode durchsuchen

Add missing handle_params callback

theenglishway (time) vor 4 Jahren
Ursprung
Commit
caa18e69fa
1 geänderte Dateien mit 3 neuen und 0 gelöschten Zeilen
  1. 3 0
      lib/vaccins_web/live/index.ex

+ 3 - 0
lib/vaccins_web/live/index.ex

@@ -22,6 +22,9 @@ defmodule VaccinsWeb.IndexLive do
      |> trigger_periodic_refresh}
   end
 
+  @impl true
+  def handle_params(%{}, _url, socket), do: {:noreply, socket}
+
   @impl true
   def handle_event("add_location", %{"location_raw" => params}, socket) do
     case params |> LocationStore.add_location() do