mirror of
https://github.com/traccar/traccar-web.git
synced 2025-01-09 04:37:33 +08:00
fix: SelectField squash warning.
This commit is contained in:
parent
19e73a4263
commit
a0aaf68016
@ -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')}
|
||||
|
Loading…
Reference in New Issue
Block a user