Sorting of search results in UI (#198)

This commit is contained in:
James Barnsley
2017-12-04 08:43:09 +13:00
parent 98c5ea886d
commit 5c49b6a859
5 changed files with 45 additions and 8 deletions

View File

@ -565,7 +565,7 @@ export function getSearchResults(type, query, limit = 50, offset = 0){
dispatch({
type: 'SPOTIFY_SEARCH_RESULTS_LOADED',
context: 'tracks',
results: response.tracks.items,
results: helpers.formatTracks(response.tracks.items),
more: response.tracks.next,
});
}