client/src/reducers/notesReducer.js
changeset 58 f16a080e0bc4
parent 29 4cfeabef7d5e
child 59 1eb52770eefa
equal deleted inserted replaced
57:2e4e9f9ebc4f 58:f16a080e0bc4
     5 export default (state = Immutable.List([]), action) => {
     5 export default (state = Immutable.List([]), action) => {
     6   switch (action.type) {
     6   switch (action.type) {
     7     case types.ADD_NOTE:
     7     case types.ADD_NOTE:
     8       return state.push(new noteRecord(action.note));
     8       return state.push(new noteRecord(action.note));
     9     case types.LOAD_NOTES_BY_SESSION:
     9     case types.LOAD_NOTES_BY_SESSION:
    10       return action.notes;
    10       //return action.notes;
       
    11       return state;
    11     default:
    12     default:
    12       return state;
    13       return state;
    13   }
    14   }
    14 };
    15 };