Artist and Playlist
This commit is contained in:
@ -2,12 +2,6 @@
|
||||
export default function reducer(lastfm = {}, action){
|
||||
switch (action.type) {
|
||||
|
||||
case 'LASTFM_ARTIST_LOADED':
|
||||
return Object.assign({}, lastfm, { artist: action.data });
|
||||
|
||||
case 'LASTFM_TRACK_LOADED':
|
||||
return Object.assign({}, lastfm, { track: action.data });
|
||||
|
||||
default:
|
||||
return lastfm
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user