equal
deleted
inserted
replaced
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, |