From ef89b48882cc5af12e1f1e48334e89cfa7ad03e1 Mon Sep 17 00:00:00 2001 From: PikachuEXE Date: Tue, 23 Jan 2024 10:10:36 +0800 Subject: [PATCH] ! Fix video position update when not all videos loaded --- src/renderer/views/Playlist/Playlist.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/views/Playlist/Playlist.js b/src/renderer/views/Playlist/Playlist.js index a4617db2578a8..3957f8d58a1f4 100644 --- a/src/renderer/views/Playlist/Playlist.js +++ b/src/renderer/views/Playlist/Playlist.js @@ -360,7 +360,7 @@ export default defineComponent({ }, moveVideoUp: function (videoId, playlistItemId) { - const playlistItems = [].concat(this.playlistItems) + const playlistItems = [].concat(this.selectedUserPlaylistVideos) const videoIndex = playlistItems.findIndex((video) => { return video.videoId === videoId && video.playlistItemId === playlistItemId }) @@ -392,7 +392,7 @@ export default defineComponent({ }, moveVideoDown: function (videoId, playlistItemId) { - const playlistItems = [].concat(this.playlistItems) + const playlistItems = [].concat(this.selectedUserPlaylistVideos) const videoIndex = playlistItems.findIndex((video) => { return video.videoId === videoId && video.playlistItemId === playlistItemId })