Skip to content

Commit

Permalink
Fix React .map() key error in area search status notes
Browse files Browse the repository at this point in the history
No IDs are returned by the backend, so all keys resolved into undefined.
  • Loading branch information
EmiliaMakelaVincit committed Sep 20, 2023
1 parent 6f9460e commit 61b6f35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/areaSearch/components/AreaSearchStatusNoteHistory.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class AreaSearchStatusNoteHistory extends Component<Props> {
defaultOpen
className="AreaSearchStatusNoteHistory"
headerTitle="Historia">
{statusNotes.map((note) => <div className="AreaSearchStatusNoteHistory__item" key={note.id}>
{statusNotes.map((note) => <div className="AreaSearchStatusNoteHistory__item" key={note.time_stamp}>
<strong>Käsittelijä: </strong>
{getUserFullName(note.preparer)} {formatDate(note.time_stamp, 'dd.MM.yyyy H.mm')}
<p>
Expand Down

0 comments on commit 61b6f35

Please sign in to comment.