aboutsummaryrefslogtreecommitdiff
path: root/modern/src/settings
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-07-06 18:12:50 -0700
committerAnton Tananaev <anton@traccar.org>2022-07-06 18:12:50 -0700
commit8ab8cf0a2b2da295a06d531068a2113a52d4c143 (patch)
treec8d025f97a103c9a3427224f19041b49c25b454b /modern/src/settings
parent89928e3a9a9356b96c2d02c9682161295ad73641 (diff)
downloadtrackermap-web-8ab8cf0a2b2da295a06d531068a2113a52d4c143.tar.gz
trackermap-web-8ab8cf0a2b2da295a06d531068a2113a52d4c143.tar.bz2
trackermap-web-8ab8cf0a2b2da295a06d531068a2113a52d4c143.zip
Fix user creation (fix #982)
Diffstat (limited to 'modern/src/settings')
-rw-r--r--modern/src/settings/UserPage.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/settings/UserPage.js b/modern/src/settings/UserPage.js
index 012d5c66..6ca55187 100644
--- a/modern/src/settings/UserPage.js
+++ b/modern/src/settings/UserPage.js
@@ -190,7 +190,7 @@ const UserPage = () => {
<InputLabel>{t('settingsAltitudeUnit')}</InputLabel>
<Select
label={t('settingsAltitudeUnit')}
- value={item.attributes.altitudeUnit || 'm'}
+ value={(item.attributes && item.attributes.altitudeUnit) || 'm'}
onChange={(e) => setItem({ ...item, attributes: { ...item.attributes, altitudeUnit: e.target.value } })}
>
<MenuItem value="m">{t('sharedMeters')}</MenuItem>