Fixed Spotify Class issue

This commit is contained in:
Killer069 2021-12-14 17:10:56 +05:30 committed by GitHub
parent 9eefa482f6
commit 55ec968501
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -236,7 +236,7 @@ export class SpotifyPlaylist {
this.tracksCount = Number(data.tracks.total);
const videos: SpotifyTrack[] = [];
data.tracks.items.forEach((v: any) => {
videos.push(new SpotifyTrack(v.track));
if(v) videos.push(new SpotifyTrack(v.track));
});
this.fetched_tracks = new Map();
this.fetched_tracks.set('1', videos);