fix: SelectField squash warning.

This commit is contained in:
Matjaž Črnko 2024-01-22 19:59:36 +01:00
parent 19e73a4263
commit a0aaf68016

View File

@ -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')}