aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-10-24 07:08:41 -0700
committerAnton Tananaev <anton@traccar.org>2022-10-24 07:08:41 -0700
commitf27b9ed82484c89bcc6610c1cf1053b127cada2a (patch)
treeec6ec38a0c68c0a1f3e188bf940b672ef82277da
parent0a89d1ecae4e70b7c694b85b1696bf0c24b5c8d1 (diff)
downloadtrackermap-web-f27b9ed82484c89bcc6610c1cf1053b127cada2a.tar.gz
trackermap-web-f27b9ed82484c89bcc6610c1cf1053b127cada2a.tar.bz2
trackermap-web-f27b9ed82484c89bcc6610c1cf1053b127cada2a.zip
Fix warning
-rw-r--r--modern/src/main/MainToolbar.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/main/MainToolbar.js b/modern/src/main/MainToolbar.js
index 2aa604e8..b6b0a556 100644
--- a/modern/src/main/MainToolbar.js
+++ b/modern/src/main/MainToolbar.js
@@ -96,7 +96,7 @@ const MainToolbar = ({
disableEnforceFocus
>
{filteredDevices.slice(0, 3).map((_, index) => (
- <DeviceRow data={filteredDevices} index={index} />
+ <DeviceRow key={filteredDevices[index].id} data={filteredDevices} index={index} />
))}
{filteredDevices.length > 3 && (
<ListItemButton alignItems="center" onClick={() => setDevicesOpen(true)}>