aboutsummaryrefslogtreecommitdiff
path: root/modern/src/reports
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/reports')
-rw-r--r--modern/src/reports/EventReportPage.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/reports/EventReportPage.js b/modern/src/reports/EventReportPage.js
index a0ba5f09..e0eed0c6 100644
--- a/modern/src/reports/EventReportPage.js
+++ b/modern/src/reports/EventReportPage.js
@@ -11,7 +11,7 @@ const ReportFilterForm = ({ onResult }) => {
const handleSubmit = async (deviceId, from, to) => {
const query = new URLSearchParams({ deviceId, from, to });
- eventType.map(it => query.append('type', it));
+ eventType.forEach(it => query.append('type', it));
const response = await fetch(`/api/reports/events?${query.toString()}`, { headers: { Accept: 'application/json' } });
if (response.ok) {
onResult(await response.json());