Small clean up

remotes/1727458204337373841/tmp_refs/heads/signup-info-prompt
Eugen Rochko 2016-10-18 01:48:46 +02:00
parent b62c31306e
commit 7bb72ff198
1 changed files with 4 additions and 2 deletions

View File

@ -78,12 +78,14 @@ function normalizeStatus(state, status) {
};
function normalizeTimeline(state, timeline, statuses) {
let ids = Immutable.List([]);
statuses.forEach((status, i) => {
state = normalizeStatus(state, status);
state = state.setIn([timeline, i], status.get('id'));
ids = ids.set(i, status.get('id'));
});
return state;
return state.set(timeline, ids);
};
function appendNormalizedTimeline(state, timeline, statuses) {