diff --git a/music_graph/src/components/ArtistInfo.vue b/music_graph/src/components/ArtistInfo.vue index bc3a1f8..3d14c17 100644 --- a/music_graph/src/components/ArtistInfo.vue +++ b/music_graph/src/components/ArtistInfo.vue @@ -100,8 +100,8 @@ export default { return t }) - if (this.artistInfo.spotifyPreviewUrls.length > 0) { - const randSong = this.artistInfo.spotifyPreviewUrls[Math.floor(Math.random() * this.artistInfo.spotifyPreviewUrls.length)] + if (this.artistInfo.tracks.length > 0) { + const randSong = this.artistInfo.tracks[Math.floor(Math.random() * this.artistInfo.tracks.length)] this.audio = new Audio(randSong.url) this.playingSong = randSong.name this.playingRelease = randSong.release