Remove TODO in code

This commit is contained in:
Lucas Verney 2016-09-18 22:57:54 +02:00
parent 82a744afa6
commit 211a80d00c
4 changed files with 20 additions and 18 deletions

View File

@ -73,8 +73,10 @@ const mapStateToProps = (state) => {
id => state.entities.getIn(["entities", "album", id])
);
albumsList.forEach(function (album) {
const albumArtist = album.get("artist"); // TODO: get on undefined
artistsList = artistsList.set(albumArtist, state.entities.getIn(["entities", "artist", albumArtist]));
if (album) {
const albumArtist = album.get("artist");
artistsList = artistsList.set(albumArtist, state.entities.getIn(["entities", "artist", albumArtist]));
}
});
}
return {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long