Moving search results into each provider; #181
This commit is contained in:
@ -105,6 +105,7 @@ const CoreMiddleware = (function(){
|
||||
|
||||
case 'SEARCH_STARTED':
|
||||
ReactGA.event({ category: 'Search', action: 'Started', label: action.type+': '+action.query })
|
||||
next(action)
|
||||
|
||||
var state = store.getState()
|
||||
if (state.ui.search_settings){
|
||||
@ -171,7 +172,6 @@ const CoreMiddleware = (function(){
|
||||
}
|
||||
}
|
||||
|
||||
next(action)
|
||||
break
|
||||
|
||||
case 'PLAYLIST_TRACKS_ADDED':
|
||||
|
||||
@ -488,14 +488,10 @@ export default function reducer(core = {}, action){
|
||||
case 'SEARCH_STARTED':
|
||||
return Object.assign({}, core, {
|
||||
search_results: {
|
||||
artists_more: null,
|
||||
artists_uris: [],
|
||||
albums_more: null,
|
||||
albums_uris: [],
|
||||
playlists_more: null,
|
||||
playlists_uris: [],
|
||||
tracks: [],
|
||||
tracks_more: null,
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user