client/src/components/SessionSummary.js
changeset 168 ea92f4fe783d
parent 161 a642639dbc07
child 170 7da1d5137b0b
--- a/client/src/components/SessionSummary.js	Tue Oct 09 19:07:47 2018 +0200
+++ b/client/src/components/SessionSummary.js	Mon Oct 08 18:35:47 2018 +0200
@@ -7,8 +7,8 @@
 const SessionSummary = ({notes}) => (
   <ul className="list-group sticky-left">
     {notes.map((note) =>
-      <li className="list-group-item border-0" key={note.get('_id')}>
-          <a href={'#note-' + note.get('_id')}>
+      <li className="list-group-item border-0" key={note._id}>
+          <a href={'#note-' + note._id}>
             <small className="note-time text-warning bg-success border-0 text-center">{formatTimestamp(note.startedAt)}</small>
             <small className="note-length font-weight-bold px-2 text-muted text-center">{_.words(note.plain).length} mots</small>
             <small className="note-time text-warning bg-success border-0 text-center">{formatTimestamp(note.finishedAt)}</small>