aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatjaž Črnko <m.crnko@txt.si>2024-01-22 19:59:36 +0100
committerMatjaž Črnko <m.crnko@txt.si>2024-01-22 19:59:36 +0100
commita0aaf68016db18a2ee69fddf74fcdbe72c9f5f17 (patch)
treee285cc50f31f0a9e8748caa98fbb0f59d8fafbab
parent19e73a4263d05cba07157d7e6a7f7f971745c662 (diff)
downloadtrackermap-web-a0aaf68016db18a2ee69fddf74fcdbe72c9f5f17.tar.gz
trackermap-web-a0aaf68016db18a2ee69fddf74fcdbe72c9f5f17.tar.bz2
trackermap-web-a0aaf68016db18a2ee69fddf74fcdbe72c9f5f17.zip
fix: SelectField squash warning.
-rw-r--r--modern/src/settings/NotificationPage.jsx4
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')}