From 66a25853ae3bccc7de946f670351963b1e7892f5 Mon Sep 17 00:00:00 2001 From: James Barnsley Date: Sun, 10 Sep 2017 20:15:24 +1200 Subject: [PATCH] No uris to load when no tracks loaded --- src/js/views/Artist.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/views/Artist.js b/src/js/views/Artist.js index 726cb91f..93f6f8fa 100755 --- a/src/js/views/Artist.js +++ b/src/js/views/Artist.js @@ -199,7 +199,7 @@ class Artist extends React.Component{ if (this.props.artist){ var is_spotify = (scheme == 'spotify') if (is_spotify){ - var uris_to_play = helpers.arrayOf('uri',this.props.artist.tracks) + var uris_to_play = (this.props.artist.tracks ? helpers.arrayOf('uri', this.props.artist.tracks) : []) } else { var uris_to_play = this.props.artist.albums_uris }