diff options
author | Anton Tananaev <anton@traccar.org> | 2022-05-23 09:45:04 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-05-23 09:45:04 -0700 |
commit | ebbf8eac7bb65812ebdaf80d833faf976212d087 (patch) | |
tree | 84351c7398a37b44f591f47612d9bec5b459a271 /modern/src/main | |
parent | 0ed610e71b28461d6c9cc996764b00db5ac0b2ba (diff) | |
download | trackermap-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.js | 2 |
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} |