equal
deleted
inserted
replaced
101 } |
101 } |
102 |
102 |
103 export const groups = (state = Immutable.List([]), action) => { |
103 export const groups = (state = Immutable.List([]), action) => { |
104 switch (action.type) { |
104 switch (action.type) { |
105 case types.GROUP_LOAD_SUCCESS: |
105 case types.GROUP_LOAD_SUCCESS: |
106 return Immutable.List(action.groups); |
106 return Immutable.List(action.groups.results); |
107 case types.GROUP_CREATE_SUCCESS: |
107 case types.GROUP_CREATE_SUCCESS: |
108 return state.push(action.group); |
108 return state.push(action.group); |
109 default: |
109 default: |
110 return state |
110 return state |
111 } |
111 } |