diff options
Diffstat (limited to 'modern/src/settings/NotificationPage.jsx')
-rw-r--r-- | modern/src/settings/NotificationPage.jsx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modern/src/settings/NotificationPage.jsx b/modern/src/settings/NotificationPage.jsx index 978d940c..63aa9b95 100644 --- a/modern/src/settings/NotificationPage.jsx +++ b/modern/src/settings/NotificationPage.jsx @@ -65,7 +65,6 @@ const NotificationPage = () => { <AccordionDetails className={classes.details}> <SelectField value={item.type} - emptyValue={null} onChange={(e) => setItem({ ...item, type: e.target.value })} endpoint="/api/notifications/types" keyGetter={(it) => it.type} @@ -93,7 +92,7 @@ const NotificationPage = () => { /> {item.notificators?.includes('command') && ( <SelectField - value={item.commandId || 0} + value={item.commandId} onChange={(event) => setItem({ ...item, commandId: Number(event.target.value) })} endpoint="/api/commands" titleGetter={(it) => it.description} @@ -129,7 +128,7 @@ const NotificationPage = () => { </AccordionSummary> <AccordionDetails className={classes.details}> <SelectField - value={item.calendarId || 0} + value={item.calendarId} onChange={(event) => setItem({ ...item, calendarId: Number(event.target.value) })} endpoint="/api/calendars" label={t('sharedCalendar')} |