Formatting not working... somehow pre-populated

This commit is contained in:
James Barnsley
2018-08-30 17:49:08 +12:00
parent 0e32361c7e
commit 405ef19109
3 changed files with 153 additions and 125 deletions

View File

@ -1000,17 +1000,11 @@ export function getRecommendations(uris = [], limit = 20, tunabilities = null){
}
if (albums.length > 0){
dispatch({
type: 'ALBUMS_LOADED',
albums: albums
});
dispatch(coreActions.albumsLoaded(albums));
}
if (tracks.length > 0){
dispatch({
type: 'TRACKS_LOADED',
tracks: tracks
});
dispatch(coreActions.tracksLoaded(tracks));
}
dispatch({
@ -1184,12 +1178,9 @@ export function getArtists(uris){
album: artist.albums[i]
});
}
artist.albums = helpers.arrayOf('uri',artist.albums)
artist.albums_uris = helpers.arrayOf('uri',artist.albums)
artist.albums_more = artist.albums.next
dispatch({
type: 'ARTIST_LOADED',
artist: artist
});
dispatch(coreActions.artistLoaded(artist));
}
},
error => {