From 6245f8b42347c4f9c556c6337b404b78fded81ed Mon Sep 17 00:00:00 2001 From: Preston Date: Thu, 21 Jan 2021 13:35:13 -0500 Subject: [PATCH] Reverse saved videos list to show latest on top --- src/renderer/views/UserPlaylists/UserPlaylists.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/renderer/views/UserPlaylists/UserPlaylists.js b/src/renderer/views/UserPlaylists/UserPlaylists.js index d90c83d6..ac88c437 100644 --- a/src/renderer/views/UserPlaylists/UserPlaylists.js +++ b/src/renderer/views/UserPlaylists/UserPlaylists.js @@ -28,10 +28,11 @@ export default Vue.extend({ }, activeData: function () { + const data = [].concat(this.favoritesPlaylist.videos).reverse() if (this.favoritesPlaylist.videos.length < this.dataLimit) { - return this.favoritesPlaylist.videos + return data } else { - return this.favoritesPlaylist.videos.slice(0, this.dataLimit) + return data.slice(0, this.dataLimit) } } },