From 982156708be8fd1169627ad752a884f2095a6bed Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 14 Nov 2020 16:14:46 -0800 Subject: Fix --- modern/src/reports/EventReportPage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modern/src/reports/EventReportPage.js') 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()); -- cgit v1.2.3