aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-12-10 09:13:39 -0800
committerAnton Tananaev <anton@traccar.org>2022-12-10 09:13:39 -0800
commit877108d9012301f2b149ae862af4cffe17dfb20d (patch)
tree0d364c3bc68a42dda63d6d51fd06b755111e224e
parent55400d4286f07fedcbfa7263de3ba663b811dbf2 (diff)
downloadtrackermap-web-877108d9012301f2b149ae862af4cffe17dfb20d.tar.gz
trackermap-web-877108d9012301f2b149ae862af4cffe17dfb20d.tar.bz2
trackermap-web-877108d9012301f2b149ae862af4cffe17dfb20d.zip
Fix attribute name (fix #1058)
-rw-r--r--modern/src/common/components/StatusCard.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/common/components/StatusCard.js b/modern/src/common/components/StatusCard.js
index e830776c..0c1ea492 100644
--- a/modern/src/common/components/StatusCard.js
+++ b/modern/src/common/components/StatusCard.js
@@ -207,7 +207,7 @@ const StatusCard = ({ deviceId, position, onClose, disableActions, desktopPaddin
{positionItems.split(',').filter((key) => position.hasOwnProperty(key) || position.attributes.hasOwnProperty(key)).map((key) => (
<StatusRow
key={key}
- name={positionAttributes[key].name}
+ name={positionAttributes.hasOwnProperty(key) ? positionAttributes[key].name : key}
content={(
<PositionValue
position={position}