From ba24d834925f3d66d875ae601e80a60cf03110cc Mon Sep 17 00:00:00 2001 From: Matjaž Črnko Date: Mon, 22 Jan 2024 21:06:27 +0100 Subject: fix: SelectField default to null value and fix emptyTitle --- modern/src/reports/components/ReportFilter.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modern/src/reports') diff --git a/modern/src/reports/components/ReportFilter.jsx b/modern/src/reports/components/ReportFilter.jsx index f7b4a6e1..5b4c5786 100644 --- a/modern/src/reports/components/ReportFilter.jsx +++ b/modern/src/reports/components/ReportFilter.jsx @@ -95,7 +95,7 @@ const ReportFilter = ({ children, handleSubmit, handleSchedule, showOnly, ignore a.name.localeCompare(b.name))} - value={multiDevice ? deviceIds : deviceId || null} + value={multiDevice ? deviceIds : deviceId} onChange={(e) => dispatch(multiDevice ? devicesActions.selectIds(e.target.value) : devicesActions.selectId(e.target.value))} multiple={multiDevice} fullWidth @@ -165,7 +165,7 @@ const ReportFilter = ({ children, handleSubmit, handleSchedule, showOnly, ignore
setCalendarId(Number(event.target.value))} endpoint="/api/calendars" label={t('sharedCalendar')} -- cgit v1.2.3