diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-10-18 01:48:46 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-10-18 01:48:46 +0200 |
commit | 7bb72ff198d9fb0747f8ded25140be35943484a0 (patch) | |
tree | ef0f9d6a91048abe6378878121433c9547d69c65 /app/assets/javascripts/components | |
parent | b62c31306e5e9670b8b285ea5885a15f59ec089b (diff) |
Small clean up
Diffstat (limited to 'app/assets/javascripts/components')
-rw-r--r-- | app/assets/javascripts/components/reducers/timelines.jsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/assets/javascripts/components/reducers/timelines.jsx b/app/assets/javascripts/components/reducers/timelines.jsx index b6a14a649..65bccb44d 100644 --- a/app/assets/javascripts/components/reducers/timelines.jsx +++ b/app/assets/javascripts/components/reducers/timelines.jsx @@ -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) { |