client/src/components/Session.js
changeset 75 15ebcb57b544
parent 63 4088f8dc6b52
child 76 b4f9114b3a86
equal deleted inserted replaced
74:043477fd5c5c 75:15ebcb57b544
    50   const notes = state['notes'];
    50   const notes = state['notes'];
    51 
    51 
    52   const currentSession = sessions.find(session => session._id === sessionId);
    52   const currentSession = sessions.find(session => session._id === sessionId);
    53   const currentNotes = notes.filter(note => {
    53   const currentNotes = notes.filter(note => {
    54         return note.session === sessionId;
    54         return note.session === sessionId;
    55     });
    55     }).sort((n1,n2) => { return n1.get('startedAt').localeCompare(n2.get('startedAt')); });
    56 
    56 
    57   return {
    57   return {
    58     currentSession,
    58     currentSession,
    59     sessions,
    59     sessions,
    60     notes: currentNotes,
    60     notes: currentNotes,