Skip to content
Snippets Groups Projects
Commit 7bb72ff1 authored by Eugen Rochko's avatar Eugen Rochko
Browse files

Small clean up

parent b62c3130
No related branches found
Tags v0.8
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment