mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 09:01:03 -08:00
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:
1 parent
2fda888676
commit
bce4717de6
1 file changed
+1
-1
+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),
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user