--- a/client/src/reducers/notesReducer.js Tue Jun 20 12:11:57 2017 +0200
+++ b/client/src/reducers/notesReducer.js Tue Jun 20 14:13:15 2017 +0200
@@ -1,13 +1,14 @@
import Immutable from 'immutable';
import * as types from '../constants/actionTypes';
-import noteRecord from '../store/noteRecord';
+import NoteRecord from '../store/noteRecord';
export default (state = Immutable.List([]), action) => {
switch (action.type) {
case types.ADD_NOTE:
- return state.push(new noteRecord(action.note));
+ return state.push(new NoteRecord(action.note));
case types.LOAD_NOTES_BY_SESSION:
- return action.notes;
+ //return action.notes;
+ return state;
default:
return state;
}