Preserve rule picker state across parent re-renders

This commit is contained in:
Claudio Ortolina
2026-04-15 15:11:17 +01:00
parent 2124c982f7
commit 7899f621f3
@@ -138,9 +138,9 @@ defmodule MusicLibraryWeb.ScrobbleRulePicker do
{:ok, {:ok,
socket socket
|> assign(assigns) |> assign(assigns)
|> assign(:query, "") |> assign_new(:query, fn -> "" end)
|> assign(:collected_results, []) |> assign_new(:collected_results, fn -> [] end)
|> assign(:wishlisted_results, [])} |> assign_new(:wishlisted_results, fn -> [] end)}
end end
@impl true @impl true