aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-11-14 16:14:46 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2020-11-14 16:14:46 -0800
commit982156708be8fd1169627ad752a884f2095a6bed (patch)
tree400d4c6193b5ff4624cabf328cf8a6a3a78b1471
parentec8fed96e394ff252c7e98bed1ca2e5322ad650a (diff)
downloadtrackermap-web-982156708be8fd1169627ad752a884f2095a6bed.tar.gz
trackermap-web-982156708be8fd1169627ad752a884f2095a6bed.tar.bz2
trackermap-web-982156708be8fd1169627ad752a884f2095a6bed.zip
Fix
-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());