diff --git a/src/renderer/components/watch-video-playlist/watch-video-playlist.js b/src/renderer/components/watch-video-playlist/watch-video-playlist.js index 2689326bf9f36..97a30b2574ed5 100644 --- a/src/renderer/components/watch-video-playlist/watch-video-playlist.js +++ b/src/renderer/components/watch-video-playlist/watch-video-playlist.js @@ -166,13 +166,6 @@ export default defineComponent({ // Re-fetch from local store when current user playlist updated this.parseUserPlaylist(this.selectedUserPlaylist, { allowPlayingVideoRemoval: true }) }, - playlistItemId (newId, _oldId) { - // Playing online video - if (newId == null) { return } - - // Re-fetch from local store when different item played - this.parseUserPlaylist(this.selectedUserPlaylist, { allowPlayingVideoRemoval: true }) - }, videoId: function (newId, oldId) { // Check if next video is from the shuffled list or if the user clicked a different video if (this.shuffleEnabled) { @@ -284,7 +277,7 @@ export default defineComponent({ this.reversePlaylist = !this.reversePlaylist // Create a new array to avoid changing array in data store state // it could be user playlist or cache playlist - this.playlistItems = [].concat(this.playlistItems).reverse() + this.playlistItems = this.playlistItems.toReversed() setTimeout(() => { this.isLoading = false }, 1) @@ -488,6 +481,10 @@ export default defineComponent({ } } + if (this.reversePlaylist) { + this.playlistItems = this.playlistItems.toReversed() + } + this.isLoading = false },