aboutsummaryrefslogtreecommitdiff
path: root/modern/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-04-23 08:16:51 -0700
committerAnton Tananaev <anton@traccar.org>2023-04-23 08:16:51 -0700
commitc52e68dfd8faa227d7d4e756004e243b6aebf414 (patch)
tree304b79a95381223253cf5ad34cf2a47af02bf745 /modern/src
parent8bf5fd13490ef4b288315e507d8554d7aa356b23 (diff)
downloadtrackermap-web-c52e68dfd8faa227d7d4e756004e243b6aebf414.tar.gz
trackermap-web-c52e68dfd8faa227d7d4e756004e243b6aebf414.tar.bz2
trackermap-web-c52e68dfd8faa227d7d4e756004e243b6aebf414.zip
Fix issue
Diffstat (limited to 'modern/src')
-rw-r--r--modern/src/main/DeviceRow.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/modern/src/main/DeviceRow.js b/modern/src/main/DeviceRow.js
index 4dac8128..44da58f9 100644
--- a/modern/src/main/DeviceRow.js
+++ b/modern/src/main/DeviceRow.js
@@ -57,8 +57,6 @@ const DeviceRow = ({ data, index, style }) => {
const item = data[index];
const position = useSelector((state) => state.session.positions[item.id]);
- const geofences = useSelector((state) => state.geofences.items);
-
const devicePrimary = useAttributePreference('devicePrimary', 'name');
const deviceSecondary = useAttributePreference('deviceSecondary', '');
@@ -90,7 +88,7 @@ const DeviceRow = ({ data, index, style }) => {
</Avatar>
</ListItemAvatar>
<ListItemText
- primary={item[deviceSecondary]}
+ primary={item[devicePrimary]}
primaryTypographyProps={{ noWrap: true }}
secondary={secondaryText()}
secondaryTypographyProps={{ noWrap: true }}