Skip to content

Commit 948f085

Browse files
committed
Updating to use key in place of uri
1 parent fc55a11 commit 948f085

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/js/services/lastfm/actions.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export function getArtist( uri, artist, mbid = false ){
4141
if( response.artist ){
4242
dispatch({
4343
type: 'ARTIST_LOADED',
44-
uri: uri,
44+
key: uri,
4545
artist: {
4646
images: response.artist.image,
4747
bio: response.artist.bio

src/js/services/ui/reducer.js

-4
Original file line numberDiff line numberDiff line change
@@ -385,10 +385,6 @@ export default function reducer(ui = {}, action){
385385

386386
return Object.assign({}, ui, { playlists: playlists });
387387

388-
case 'MOPIDY_PLAYLIST_LOADED':
389-
if( !action.data ) return Object.assign({}, ui, { playlist: false })
390-
return Object.assign({}, ui, { playlist: action.data })
391-
392388
case 'PLAYLIST_LOADED_MORE_TRACKS':
393389
var playlists = Object.assign([], ui.playlists)
394390
var playlist = Object.assign(

0 commit comments

Comments
 (0)