diff -r c77570164050 -r c653f49fabfb client/src/components/Session.js --- a/client/src/components/Session.js Thu Jul 20 11:23:08 2017 +0200 +++ b/client/src/components/Session.js Thu Jul 20 23:37:58 2017 +0200 @@ -10,6 +10,7 @@ import SessionSummary from './SessionSummary'; import * as sessionsActions from '../actions/sessionsActions'; import * as notesActions from '../actions/notesActions'; +import * as userActions from '../actions/userActions'; class Session extends Component { render() { @@ -24,14 +25,22 @@

- +
- + @@ -48,16 +57,18 @@ const sessions = state['sessions']; const notes = state['notes']; + const autoSubmit = state['autoSubmit']; const currentSession = sessions.find(session => session._id === sessionId); const currentNotes = notes.filter(note => { - return note.session === sessionId; + return (note.session === sessionId && !note.deleted); }).sortBy( n => n.get('startedAt') ); return { currentSession, sessions, notes: currentNotes, + autoSubmit }; } @@ -65,6 +76,7 @@ return { sessionsActions: bindActionCreators(sessionsActions, dispatch), notesActions: bindActionCreators(notesActions, dispatch), + userActions: bindActionCreators(userActions, dispatch) } }