client/src/components/Session.js
changeset 76 b4f9114b3a86
parent 75 15ebcb57b544
child 125 c653f49fabfb
equal deleted inserted replaced
75:15ebcb57b544 76:b4f9114b3a86
    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     }).sort((n1,n2) => { return n1.get('startedAt').localeCompare(n2.get('startedAt')); });
    55     }).sortBy( n => n.get('startedAt') );
    56 
    56 
    57   return {
    57   return {
    58     currentSession,
    58     currentSession,
    59     sessions,
    59     sessions,
    60     notes: currentNotes,
    60     notes: currentNotes,