diff options
author | Anton Tananaev <anton@traccar.org> | 2023-04-23 08:16:51 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2023-04-23 08:16:51 -0700 |
commit | c52e68dfd8faa227d7d4e756004e243b6aebf414 (patch) | |
tree | 304b79a95381223253cf5ad34cf2a47af02bf745 /modern | |
parent | 8bf5fd13490ef4b288315e507d8554d7aa356b23 (diff) | |
download | trackermap-web-c52e68dfd8faa227d7d4e756004e243b6aebf414.tar.gz trackermap-web-c52e68dfd8faa227d7d4e756004e243b6aebf414.tar.bz2 trackermap-web-c52e68dfd8faa227d7d4e756004e243b6aebf414.zip |
Fix issue
Diffstat (limited to 'modern')
-rw-r--r-- | modern/src/main/DeviceRow.js | 4 |
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 }} |