aboutsummaryrefslogtreecommitdiff
path: root/modern/src/settings/PreferencesPage.jsx
diff options
context:
space:
mode:
authorMatjaž Črnko <m.crnko@txt.si>2024-01-22 20:05:32 +0100
committerMatjaž Črnko <m.crnko@txt.si>2024-01-22 20:05:32 +0100
commit829fa6caac936cc53395ca4fe7f05e13c2841588 (patch)
tree9a7ad20d934f4eb9360e51a52532407407a366fa /modern/src/settings/PreferencesPage.jsx
parenta0aaf68016db18a2ee69fddf74fcdbe72c9f5f17 (diff)
downloadtrackermap-web-829fa6caac936cc53395ca4fe7f05e13c2841588.tar.gz
trackermap-web-829fa6caac936cc53395ca4fe7f05e13c2841588.tar.bz2
trackermap-web-829fa6caac936cc53395ca4fe7f05e13c2841588.zip
fix: SelectField default emptyValue to null
Diffstat (limited to 'modern/src/settings/PreferencesPage.jsx')
-rw-r--r--modern/src/settings/PreferencesPage.jsx2
1 files changed, 0 insertions, 2 deletions
diff --git a/modern/src/settings/PreferencesPage.jsx b/modern/src/settings/PreferencesPage.jsx
index 53d205f5..aaa99645 100644
--- a/modern/src/settings/PreferencesPage.jsx
+++ b/modern/src/settings/PreferencesPage.jsx
@@ -264,7 +264,6 @@ const PreferencesPage = () => {
</AccordionSummary>
<AccordionDetails className={classes.details}>
<SelectField
- emptyValue={null}
value={attributes.devicePrimary || 'name'}
onChange={(e) => setAttributes({ ...attributes, devicePrimary: e.target.value })}
data={deviceFields}
@@ -272,7 +271,6 @@ const PreferencesPage = () => {
label={t('devicePrimaryInfo')}
/>
<SelectField
- emptyValue={null}
value={attributes.deviceSecondary || null}
onChange={(e) => setAttributes({ ...attributes, deviceSecondary: e.target.value })}
data={deviceFields}