diff options
Diffstat (limited to 'modern/src')
-rw-r--r-- | modern/src/settings/UserPage.js | 2 |
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> |