mirror of
https://github.com/TeamPiped/Piped.git
synced 2025-08-09 20:24:09 +00:00
Fix for API retrieved playlists bug introduced in #3357
This commit is contained in:
@@ -102,16 +102,8 @@ export default {
|
||||
window.removeEventListener("scroll", this.handleScroll);
|
||||
},
|
||||
methods: {
|
||||
async fetchPlaylist() {
|
||||
const playlistId = this.$route.query.list;
|
||||
if (playlistId.startsWith("local")) {
|
||||
return this.getPlaylist(playlistId);
|
||||
}
|
||||
|
||||
return await await this.fetchJson(this.authApiUrl() + "/playlists/" + this.$route.query.list);
|
||||
},
|
||||
async getPlaylistData() {
|
||||
this.fetchPlaylist()
|
||||
this.getPlaylist(this.$route.query.list)
|
||||
.then(data => (this.playlist = data))
|
||||
.then(() => {
|
||||
this.updateTitle();
|
||||
|
Reference in New Issue
Block a user