diff -r 4b780ebbedc6 -r 0e6703cd0968 client/src/components/Session.js --- a/client/src/components/Session.js Tue Nov 13 16:46:15 2018 +0100 +++ b/client/src/components/Session.js Fri Nov 16 11:19:13 2018 +0100 @@ -12,9 +12,7 @@ import ProtocolSummary from './ProtocolSummary'; import * as sessionsActions from '../actions/sessionsActions'; import * as notesActions from '../actions/notesActions'; -import * as userActions from '../actions/userActions'; import { getSession, getSessionNotes } from '../selectors/coreSelectors'; -import { getAutoSubmit } from '../selectors/authSelectors'; import { extractAnnotationCategories, defaultAnnotationsCategories } from '../constants'; class Session extends Component { @@ -88,9 +86,7 @@
@@ -106,7 +102,6 @@ const sessionId = props.match.params.id; - const autoSubmit = getAutoSubmit(state); const currentSession = getSession(sessionId, state); const currentNotes = getSessionNotes(sessionId, state); const annotationCategories = currentSession?extractAnnotationCategories(currentSession.protocol):defaultAnnotationsCategories; @@ -114,7 +109,6 @@ return { currentSession, notes: currentNotes, - autoSubmit, annotationCategories }; } @@ -122,8 +116,7 @@ function mapDispatchToProps(dispatch) { return { sessionsActions: bindActionCreators(sessionsActions, dispatch), - notesActions: bindActionCreators(notesActions, dispatch), - userActions: bindActionCreators(userActions, dispatch) + notesActions: bindActionCreators(notesActions, dispatch) } }