about summary refs log tree commit diff
path: root/app/assets/javascripts/components/reducers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-09-20 23:18:00 +0200
committerEugen Rochko <eugen@zeonfederated.com>2016-09-20 23:18:00 +0200
commit6d89edc4f772b10b61f9747482a155666077f20b (patch)
tree6863d30c30851718f9181e4e17e96f069f1348f3 /app/assets/javascripts/components/reducers
parent1d2856c2afb6f3e54e15fe34da3c167c29d4f47a (diff)
Fix #47 by renaming TIMELINE_SET action to TIMELINE_REFRESH_SUCCESS
Diffstat (limited to 'app/assets/javascripts/components/reducers')
-rw-r--r--app/assets/javascripts/components/reducers/timelines.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/components/reducers/timelines.jsx b/app/assets/javascripts/components/reducers/timelines.jsx
index 2bc4e6eb6..e6a1d0f11 100644
--- a/app/assets/javascripts/components/reducers/timelines.jsx
+++ b/app/assets/javascripts/components/reducers/timelines.jsx
@@ -1,5 +1,5 @@
 import {
-  TIMELINE_SET,
+  TIMELINE_REFRESH_SUCCESS,
   TIMELINE_UPDATE,
   TIMELINE_DELETE
 }                                from '../actions/timelines';
@@ -139,7 +139,7 @@ function normalizeContext(state, status, ancestors, descendants) {
 
 export default function timelines(state = initialState, action) {
   switch(action.type) {
-    case TIMELINE_SET:
+    case TIMELINE_REFRESH_SUCCESS:
       return normalizeTimeline(state, action.timeline, Immutable.fromJS(action.statuses));
     case TIMELINE_UPDATE:
       return updateTimeline(state, action.timeline, Immutable.fromJS(action.status));