瀏覽代碼

Add missing handle_params callback

theenglishway (time) 4 年之前
父節點
當前提交
caa18e69fa
共有 1 個文件被更改,包括 3 次插入0 次删除
  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