Mergingcurrent_track and current_tracklist; Smarter reducers for UI
This commit is contained in:
@ -5,9 +5,6 @@ export default function reducer(lastfm = {}, action){
|
||||
case 'LASTFM_ARTIST_LOADED':
|
||||
return Object.assign({}, lastfm, { artist: action.data });
|
||||
|
||||
case 'LASTFM_ALBUM_LOADED':
|
||||
return Object.assign({}, lastfm, { album: action.data });
|
||||
|
||||
case 'LASTFM_TRACK_LOADED':
|
||||
return Object.assign({}, lastfm, { track: action.data });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user