Browse Source

Add missing handle_params callback

theenglishway (time) 4 năm trước cách đây
mục cha
commit
caa18e69fa
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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