aboutsummaryrefslogtreecommitdiff
path: root/src/reports/components/ReportFilter.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/reports/components/ReportFilter.jsx')
-rw-r--r--src/reports/components/ReportFilter.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/reports/components/ReportFilter.jsx b/src/reports/components/ReportFilter.jsx
index e6e08f16..437a7487 100644
--- a/src/reports/components/ReportFilter.jsx
+++ b/src/reports/components/ReportFilter.jsx
@@ -11,7 +11,7 @@ import SplitButton from '../../common/components/SplitButton';
import SelectField from '../../common/components/SelectField';
import { useRestriction } from '../../common/util/permissions';
-const ReportFilter = ({ children, handleSubmit, handleSchedule, showOnly, ignoreDevice, multiDevice, includeGroups }) => {
+const ReportFilter = ({ children, handleSubmit, handleSchedule, showOnly, ignoreDevice, multiDevice, includeGroups, loading }) => {
const classes = useReportStyles();
const dispatch = useDispatch();
const t = useTranslation();
@@ -33,7 +33,7 @@ const ReportFilter = ({ children, handleSubmit, handleSchedule, showOnly, ignore
const [calendarId, setCalendarId] = useState();
const scheduleDisabled = button === 'schedule' && (!description || !calendarId);
- const disabled = (!ignoreDevice && !deviceId && !deviceIds.length && !groupIds.length) || scheduleDisabled;
+ const disabled = (!ignoreDevice && !deviceId && !deviceIds.length && !groupIds.length) || scheduleDisabled || loading;
const handleClick = (type) => {
if (type === 'schedule') {