Moving artist artwork checker to GridItem so we can detect mount

This commit is contained in:
James Barnsley
2018-02-21 12:58:32 +13:00
parent 8603ada14c
commit cce8ac527a
5 changed files with 38 additions and 50 deletions

View File

@ -68,7 +68,7 @@ class Artist extends React.Component{
default:
if (props.mopidy_connected){
if (props.artist && props.artist.images){
if (props.artist && props.artist.images && props.artist.albums_uris){
console.info('Loading local artist from index');
} else {
this.props.mopidyActions.getArtist(props.params.uri);