equal
deleted
inserted
replaced
4 |
4 |
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: |
|
10 //return action.notes; |
|
11 return state; |
|
12 default: |
9 default: |
13 return state; |
10 return state; |
14 } |
11 } |
15 }; |
12 }; |