From bce4717de616cd4a1d1f947381905fce33bffc50 Mon Sep 17 00:00:00 2001 From: 4gray Date: Sat, 27 Sep 2025 16:30:22 +0200 Subject: [PATCH] fix(player): use channel URL for favorites ordering Use channel.url instead of channel.id when updating the favorites ordering in the playlist store. The change ensures the dispatched setFavorites action contains the correct identifierurl) that the store and downstream logic expect, preventing mismatches between the UI order and persisted favorites. --- .../channel-list-container/channel-list-container.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/player/components/channel-list-container/channel-list-container.component.ts b/src/app/player/components/channel-list-container/channel-list-container.component.ts index c83ec4aa4..1f210ce57 100644 --- a/src/app/player/components/channel-list-container/channel-list-container.component.ts +++ b/src/app/player/components/channel-list-container/channel-list-container.component.ts @@ -163,7 +163,7 @@ export class ChannelListContainerComponent { moveItemInArray(favorites, event.previousIndex, event.currentIndex); this.store.dispatch( PlaylistActions.setFavorites({ - channelIds: favorites.map((item) => item.id), + channelIds: favorites.map((item) => item.url), }) ); }