From 9200986d36b88f549ed40606246d4ef08c93f18f Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 8 Jul 2022 16:52:45 -0700 Subject: Improve reports handling --- modern/src/reports/StatisticsPage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modern/src/reports/StatisticsPage.js') diff --git a/modern/src/reports/StatisticsPage.js b/modern/src/reports/StatisticsPage.js index eb6130c7..254a912d 100644 --- a/modern/src/reports/StatisticsPage.js +++ b/modern/src/reports/StatisticsPage.js @@ -39,7 +39,7 @@ const StatisticsPage = () => { setLoading(true); try { const query = new URLSearchParams({ from, to }); - const response = await fetch(`/api/statistics?${query.toString()}`, { Accept: 'application/json' }); + const response = await fetch(`/api/statistics?${query.toString()}`); if (response.ok) { setItems(await response.json()); } else { -- cgit v1.2.3