From 07f35da5be7d189a0de66d514f11598f7db0ff39 Mon Sep 17 00:00:00 2001 From: Preston Date: Sat, 8 Aug 2020 18:08:22 -0400 Subject: [PATCH] Actually fix the playlist navigation --- .../components/watch-video-playlist/watch-video-playlist.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 1a451028..a1a17564 100644 --- a/src/renderer/components/watch-video-playlist/watch-video-playlist.js +++ b/src/renderer/components/watch-video-playlist/watch-video-playlist.js @@ -70,12 +70,14 @@ export default Vue.extend({ }) const oldVideoIndex = this.randomizedPlaylistItems.findIndex((item) => { - return item === this.oldId + return item === oldId }) if ((newVideoIndex - 1) !== oldVideoIndex) { // User clicked a different video than expected. Re-shuffle the list + console.log(this.randomizedPlaylistItems) this.shufflePlaylistItems() + console.log(this.randomizedPlaylistItems) } } }