Insert new scrobble rule at the top to match db order

This commit is contained in:
Claudio Ortolina
2025-07-13 21:19:28 +01:00
parent c55fd695e4
commit 405051dcf6
@@ -49,7 +49,7 @@ defmodule MusicLibraryWeb.ScrobbleRulesLive.Index do
{MusicLibraryWeb.ScrobbleRulesLive.FormComponent, {:saved, scrobble_rule}}, {MusicLibraryWeb.ScrobbleRulesLive.FormComponent, {:saved, scrobble_rule}},
socket socket
) do ) do
{:noreply, stream_insert(socket, :scrobble_rules, scrobble_rule)} {:noreply, stream_insert(socket, :scrobble_rules, scrobble_rule, at: 0)}
end end
@impl true @impl true