diff options
-rw-r--r-- | modern/src/reports/EventReportPage.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/reports/EventReportPage.js b/modern/src/reports/EventReportPage.js index a0ba5f0..e0eed0c 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()); |