diff options
Diffstat (limited to 'modern/src/attributes')
-rw-r--r-- | modern/src/attributes/EditAttributesView.js | 3 | ||||
-rw-r--r-- | modern/src/attributes/useUserAttributes.js | 12 |
2 files changed, 2 insertions, 13 deletions
diff --git a/modern/src/attributes/EditAttributesView.js b/modern/src/attributes/EditAttributesView.js index 4343fde4..af90a73a 100644 --- a/modern/src/attributes/EditAttributesView.js +++ b/modern/src/attributes/EditAttributesView.js @@ -105,7 +105,8 @@ const EditAttributesView = ({ attributes, setAttributes, definitions }) => { const convertToList = (attributes) => { const booleanList = []; const otherList = []; - Object.keys(attributes || []).forEach((key) => { + const excludeAttributes = ['speedUnit', 'distanceUnit', 'volumeUnit']; + Object.keys(attributes || []).filter((key) => !excludeAttributes.includes(key)).forEach((key) => { const value = attributes[key]; const type = getAttributeType(value); const subtype = getAttributeSubtype(key); diff --git a/modern/src/attributes/useUserAttributes.js b/modern/src/attributes/useUserAttributes.js index 0101d2f5..3c5ea019 100644 --- a/modern/src/attributes/useUserAttributes.js +++ b/modern/src/attributes/useUserAttributes.js @@ -45,18 +45,6 @@ export default (t) => useMemo(() => ({ name: t('attributeUiHidePositionAttributes'), type: 'string', }, - distanceUnit: { - name: t('settingsDistanceUnit'), - type: 'string', - }, - speedUnit: { - name: t('settingsSpeedUnit'), - type: 'string', - }, - volumeUnit: { - name: t('settingsVolumeUnit'), - type: 'string', - }, timezone: { name: t('sharedTimezone'), type: 'string', |