client/src/reducers/authReducer.js
changeset 101 e165aa89ac82
parent 100 6fd752d98933
child 129 d48946d164c6
--- a/client/src/reducers/authReducer.js	Tue Jun 27 18:12:10 2017 +0200
+++ b/client/src/reducers/authReducer.js	Wed Jun 28 12:54:48 2017 +0200
@@ -88,6 +88,10 @@
 
 export const groups = (state = Immutable.List([]), action) => {
   switch (action.type) {
+    case types.GROUP_LOAD_SUCCESS:
+      return Immutable.List(action.groups);
+    case types.GROUP_CREATE_SUCCESS:
+      return state.push(action.group);
     default:
       return state
   }