From 4481ca939a5a6198c25653b7d31449c352838775 Mon Sep 17 00:00:00 2001 From: jcass Date: Wed, 18 Jan 2017 19:10:47 +0200 Subject: [PATCH] Fix issue where 'Show Info' popup would not work for TrackRefs. --- mopidy_musicbox_webclient/static/js/controls.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mopidy_musicbox_webclient/static/js/controls.js b/mopidy_musicbox_webclient/static/js/controls.js index 5664585..55e87d2 100644 --- a/mopidy_musicbox_webclient/static/js/controls.js +++ b/mopidy_musicbox_webclient/static/js/controls.js @@ -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 () {