Properly checking whether Spotify is enabled, fixes #464

This commit is contained in:
James Barnsley
2019-11-14 06:34:20 +13:00
parent 0f30574e92
commit d8da48782f
5 changed files with 6 additions and 6 deletions

View File

@ -2125,7 +2125,7 @@ const MopidyMiddleware = (function () {
const existing_artist = store.getState().core.artists[artist.uri];
if (existing_artist) {
if (!existing_artist.images) {
if (store.getState().spotify.access_token) {
if (store.getState().spotify.enabled) {
store.dispatch(spotifyActions.getArtistImages(artist));
} else {
store.dispatch(discogsActions.getArtistImages(artist.uri, artist));