Insert new scrobble rule at the top to match db order
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user