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.
This commit is contained in:
4gray committed 2025-09-27 16:30:22 +02:00
1 parent 2fda888676
commit bce4717de6
1 file changed
+1 -1
@@ -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),
})
);
}