From 405051dcf6b85eddcc71c383b8fa29c08c37a97c Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Sun, 13 Jul 2025 21:19:28 +0100 Subject: [PATCH] Insert new scrobble rule at the top to match db order --- lib/music_library_web/live/scrobble_rules_live/index.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/music_library_web/live/scrobble_rules_live/index.ex b/lib/music_library_web/live/scrobble_rules_live/index.ex index 2797e487..37e2daa7 100644 --- a/lib/music_library_web/live/scrobble_rules_live/index.ex +++ b/lib/music_library_web/live/scrobble_rules_live/index.ex @@ -49,7 +49,7 @@ defmodule MusicLibraryWeb.ScrobbleRulesLive.Index do {MusicLibraryWeb.ScrobbleRulesLive.FormComponent, {:saved, scrobble_rule}}, socket ) do - {:noreply, stream_insert(socket, :scrobble_rules, scrobble_rule)} + {:noreply, stream_insert(socket, :scrobble_rules, scrobble_rule, at: 0)} end @impl true