Tidying playlist view with owner details (simplified)

This commit is contained in:
James Barnsley
2016-11-14 18:15:22 +13:00
parent df30327fe3
commit fa1f692f22
5 changed files with 17 additions and 5 deletions

View File

@ -539,7 +539,8 @@ export function getPlaylist( uri ){
$.when(
sendRequest( dispatch, getState, 'users/'+ helpers.getFromUri('userid',uri) +'/playlists/'+ helpers.getFromUri('playlistid',uri) +'?market='+getState().spotify.country )
// get the main playlist object
sendRequest( dispatch, getState, 'users/'+ helpers.getFromUri('userid',uri) +'/playlists/'+ helpers.getFromUri('playlistid',uri) +'?market='+getState().spotify.country )
.then( response => {
Object.assign( playlist, response );
}),