Skip to content

Commit

Permalink
! Fix video position update when not all videos loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
PikachuEXE committed Jan 23, 2024
1 parent f7d8f00 commit ef89b48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderer/views/Playlist/Playlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
Expand Down Expand Up @@ -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
})
Expand Down

0 comments on commit ef89b48

Please sign in to comment.