diff options
author | Matjaž Črnko <m.crnko@txt.si> | 2024-01-22 19:59:36 +0100 |
---|---|---|
committer | Matjaž Črnko <m.crnko@txt.si> | 2024-01-22 19:59:36 +0100 |
commit | a0aaf68016db18a2ee69fddf74fcdbe72c9f5f17 (patch) | |
tree | e285cc50f31f0a9e8748caa98fbb0f59d8fafbab /modern/src | |
parent | 19e73a4263d05cba07157d7e6a7f7f971745c662 (diff) | |
download | trackermap-web-a0aaf68016db18a2ee69fddf74fcdbe72c9f5f17.tar.gz trackermap-web-a0aaf68016db18a2ee69fddf74fcdbe72c9f5f17.tar.bz2 trackermap-web-a0aaf68016db18a2ee69fddf74fcdbe72c9f5f17.zip |
fix: SelectField squash warning.
Diffstat (limited to 'modern/src')
-rw-r--r-- | modern/src/settings/NotificationPage.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/settings/NotificationPage.jsx b/modern/src/settings/NotificationPage.jsx index fdefedaf..cfb908b5 100644 --- a/modern/src/settings/NotificationPage.jsx +++ b/modern/src/settings/NotificationPage.jsx @@ -102,7 +102,7 @@ const NotificationPage = () => { /> {item.notificators?.includes('command') && ( <SelectField - value={item.commandId || 0} + value={item.commandId || null} onChange={(event) => setItem({ ...item, commandId: Number(event.target.value) })} endpoint="/api/commands" titleGetter={(it) => it.description} @@ -138,7 +138,7 @@ const NotificationPage = () => { </AccordionSummary> <AccordionDetails className={classes.details}> <SelectField - value={item.calendarId || 0} + value={item.calendarId || null} onChange={(event) => setItem({ ...item, calendarId: Number(event.target.value) })} endpoint="/api/calendars" label={t('sharedCalendar')} |