Fix issue where 'Show Info' popup would not work for TrackRefs.

This commit is contained in:
jcass 2017-01-18 19:10:47 +02:00
parent a3e82c679c
commit 4481ca939a

View File

@ -362,7 +362,7 @@
}
// Fallback to album artists.
if (artistNames.length === 0 && track.album.artists && track.album.artists.length > 0) {
if (artistNames.length === 0 && track.album && track.album.artists && track.album.artists.length > 0) {
for (i = 0; i < track.album.artists.length; i++) {
if (i > 0) {
artistNames = artistNames + ', '
@ -404,6 +404,7 @@
$('#popupShowInfo #uri-cell').select()
}
}, console.error)
return false
},
refreshPlaylists: function () {