diff options
author | Anton Tananaev <anton@traccar.org> | 2022-10-23 06:36:50 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-10-23 06:36:50 -0700 |
commit | 0510fac36d0d852984b567104e2c9f0df9906492 (patch) | |
tree | b5e982212cf4a1ad0c54a6bf7c462b3c7446791b /modern/src/main/DeviceRow.js | |
parent | 23f2332c7ce6cea72d91df102d35c03d0d3ce49e (diff) | |
download | trackermap-web-0510fac36d0d852984b567104e2c9f0df9906492.tar.gz trackermap-web-0510fac36d0d852984b567104e2c9f0df9906492.tar.bz2 trackermap-web-0510fac36d0d852984b567104e2c9f0df9906492.zip |
Simplify device list data
Diffstat (limited to 'modern/src/main/DeviceRow.js')
-rw-r--r-- | modern/src/main/DeviceRow.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modern/src/main/DeviceRow.js b/modern/src/main/DeviceRow.js index 440e6f5c..978813b4 100644 --- a/modern/src/main/DeviceRow.js +++ b/modern/src/main/DeviceRow.js @@ -60,8 +60,7 @@ const DeviceRow = ({ data, index, style }) => { const admin = useAdministrator(); - const { items } = data; - const item = items[index]; + const item = data[index]; const position = useSelector((state) => state.positions.items[item.id]); const geofences = useSelector((state) => state.geofences.items); |