diff options
author | Anton Tananaev <anton@traccar.org> | 2022-12-10 09:13:39 -0800 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-12-10 09:13:39 -0800 |
commit | 877108d9012301f2b149ae862af4cffe17dfb20d (patch) | |
tree | 0d364c3bc68a42dda63d6d51fd06b755111e224e /modern/src/common/components | |
parent | 55400d4286f07fedcbfa7263de3ba663b811dbf2 (diff) | |
download | trackermap-web-877108d9012301f2b149ae862af4cffe17dfb20d.tar.gz trackermap-web-877108d9012301f2b149ae862af4cffe17dfb20d.tar.bz2 trackermap-web-877108d9012301f2b149ae862af4cffe17dfb20d.zip |
Fix attribute name (fix #1058)
Diffstat (limited to 'modern/src/common/components')
-rw-r--r-- | modern/src/common/components/StatusCard.js | 2 |
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} |