aboutsummaryrefslogtreecommitdiff
path: root/modern/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-05-23 09:45:04 -0700
committerAnton Tananaev <anton@traccar.org>2022-05-23 09:45:04 -0700
commitebbf8eac7bb65812ebdaf80d833faf976212d087 (patch)
tree84351c7398a37b44f591f47612d9bec5b459a271 /modern/src/main
parent0ed610e71b28461d6c9cc996764b00db5ac0b2ba (diff)
downloadtrackermap-web-ebbf8eac7bb65812ebdaf80d833faf976212d087.tar.gz
trackermap-web-ebbf8eac7bb65812ebdaf80d833faf976212d087.tar.bz2
trackermap-web-ebbf8eac7bb65812ebdaf80d833faf976212d087.zip
Check attribute availability (fix #937)
Diffstat (limited to 'modern/src/main')
-rw-r--r--modern/src/main/StatusCard.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/main/StatusCard.js b/modern/src/main/StatusCard.js
index ec33efa2..d521749b 100644
--- a/modern/src/main/StatusCard.js
+++ b/modern/src/main/StatusCard.js
@@ -127,7 +127,7 @@ const StatusCard = ({ deviceId, onClose }) => {
<TableContainer>
<Table size="small" classes={{ root: classes.table }}>
<TableBody>
- {positionItems.map((key) => (
+ {positionItems.filter((key) => position.hasOwnProperty(key) || position.attributes.hasOwnProperty(key)).map((key) => (
<StatusRow
key={key}
name={positionAttributes[key].name}