diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-11-14 16:14:46 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-11-14 16:14:46 -0800 |
commit | 982156708be8fd1169627ad752a884f2095a6bed (patch) | |
tree | 400d4c6193b5ff4624cabf328cf8a6a3a78b1471 | |
parent | ec8fed96e394ff252c7e98bed1ca2e5322ad650a (diff) | |
download | trackermap-web-982156708be8fd1169627ad752a884f2095a6bed.tar.gz trackermap-web-982156708be8fd1169627ad752a884f2095a6bed.tar.bz2 trackermap-web-982156708be8fd1169627ad752a884f2095a6bed.zip |
Fix
-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 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()); |