Unpaginated local albums merged into library.albums

This commit is contained in:
James Barnsley
2017-08-08 21:34:52 +12:00
parent ba97a6be4a
commit 184ba5547c
7 changed files with 43 additions and 30 deletions

View File

@ -206,9 +206,9 @@ export default function reducer(core = {}, action){
return Object.assign({}, core, {
library_albums: helpers.removeDuplicates([...library_albums, ...action.uris]),
library_albums_spotify_more: (action.spotify_more ? action.spotify_more : null),
library_albums_more: (action.more ? action.more : null),
library_albums_total: (action.total ? action.total : null),
library_albums_spotify_started: (action.spotify_started ? action.spotify_started : null),
library_albums_started: (action.started ? action.started : null),
});
case 'ALBUM_LIBRARY_CHECK':