client/src/components/Session.js
changeset 168 ea92f4fe783d
parent 165 62e5be0df812
child 171 03334a31130a
equal deleted inserted replaced
167:1f340f3597a8 168:ea92f4fe783d
   106   const sessionId = props.match.params.id;
   106   const sessionId = props.match.params.id;
   107 
   107 
   108   const autoSubmit = getAutoSubmit(state);
   108   const autoSubmit = getAutoSubmit(state);
   109   const currentSession = getSession(sessionId, state);
   109   const currentSession = getSession(sessionId, state);
   110   const currentNotes = getSessionNotes(sessionId, state);
   110   const currentNotes = getSessionNotes(sessionId, state);
   111   const annotationCategories = currentSession?extractAnnotationCategories(currentSession.get('protocol')):defaultAnnotationsCategories;
   111   const annotationCategories = currentSession?extractAnnotationCategories(currentSession.protocol):defaultAnnotationsCategories;
   112 
   112 
   113   return {
   113   return {
   114     currentSession,
   114     currentSession,
   115     notes: currentNotes,
   115     notes: currentNotes,
   116     autoSubmit,
   116     autoSubmit,