From 76a5de1f93bb1107a70736f14318284c8beb95a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilia=20M=C3=A4kel=C3=A4?= Date: Wed, 20 Sep 2023 17:37:06 +0300 Subject: [PATCH] Fix React .map() key error in area search status notes No IDs are returned by the backend, so all keys resolved into undefined. --- src/areaSearch/components/AreaSearchStatusNoteHistory.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/areaSearch/components/AreaSearchStatusNoteHistory.js b/src/areaSearch/components/AreaSearchStatusNoteHistory.js index 7e278496f..2eb9c6863 100644 --- a/src/areaSearch/components/AreaSearchStatusNoteHistory.js +++ b/src/areaSearch/components/AreaSearchStatusNoteHistory.js @@ -21,7 +21,7 @@ class AreaSearchStatusNoteHistory extends Component { defaultOpen className="AreaSearchStatusNoteHistory" headerTitle="Historia"> - {statusNotes.map((note) =>
+ {statusNotes.map((note) =>
Käsittelijä: {getUserFullName(note.preparer)} {formatDate(note.time_stamp, 'dd.MM.yyyy H.mm')}