aboutsummaryrefslogtreecommitdiff
path: root/modern/src/settings/NotificationPage.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/NotificationPage.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/NotificationPage.jsx')
-rw-r--r--modern/src/settings/NotificationPage.jsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/modern/src/settings/NotificationPage.jsx b/modern/src/settings/NotificationPage.jsx
index cfb908b5..53eea8ae 100644
--- a/modern/src/settings/NotificationPage.jsx
+++ b/modern/src/settings/NotificationPage.jsx
@@ -73,8 +73,7 @@ const NotificationPage = () => {
</AccordionSummary>
<AccordionDetails className={classes.details}>
<SelectField
- value={item.type}
- emptyValue={null}
+ value={item.type || null}
onChange={(e) => setItem({ ...item, type: e.target.value })}
endpoint="/api/notifications/types"
keyGetter={(it) => it.type}