Reverse saved videos list to show latest on top

This commit is contained in:
Preston 2021-01-21 13:35:13 -05:00
parent 1375df17d9
commit 6245f8b423
1 changed files with 3 additions and 2 deletions

View File

@ -28,10 +28,11 @@ export default Vue.extend({
}, },
activeData: function () { activeData: function () {
const data = [].concat(this.favoritesPlaylist.videos).reverse()
if (this.favoritesPlaylist.videos.length < this.dataLimit) { if (this.favoritesPlaylist.videos.length < this.dataLimit) {
return this.favoritesPlaylist.videos return data
} else { } else {
return this.favoritesPlaylist.videos.slice(0, this.dataLimit) return data.slice(0, this.dataLimit)
} }
} }
}, },