Updating to use key in place of uri

This commit is contained in:
James Barnsley
2017-01-19 16:13:47 +13:00
parent fc55a112d2
commit 948f085c58
2 changed files with 1 additions and 5 deletions

View File

@ -41,7 +41,7 @@ export function getArtist( uri, artist, mbid = false ){
if( response.artist ){
dispatch({
type: 'ARTIST_LOADED',
uri: uri,
key: uri,
artist: {
images: response.artist.image,
bio: response.artist.bio

View File

@ -385,10 +385,6 @@ export default function reducer(ui = {}, action){
return Object.assign({}, ui, { playlists: playlists });
case 'MOPIDY_PLAYLIST_LOADED':
if( !action.data ) return Object.assign({}, ui, { playlist: false })
return Object.assign({}, ui, { playlist: action.data })
case 'PLAYLIST_LOADED_MORE_TRACKS':
var playlists = Object.assign([], ui.playlists)
var playlist = Object.assign(