From ec213b4d4dbe9a25bfaa26d49bf5b6ffee0632bc Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 4 Jul 2022 15:22:15 -0700 Subject: Simplify positions request --- modern/src/other/ReplayPage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modern/src/other') diff --git a/modern/src/other/ReplayPage.js b/modern/src/other/ReplayPage.js index 7db751b2..aaffc889 100644 --- a/modern/src/other/ReplayPage.js +++ b/modern/src/other/ReplayPage.js @@ -120,12 +120,12 @@ const ReplayPage = () => { } }, [index, positions]); - const handleSubmit = useCatch(async ({ deviceId, from, to, headers }) => { + const handleSubmit = useCatch(async ({ deviceId, from, to }) => { setSelectedDeviceId(deviceId); setFrom(from); setTo(to); const query = new URLSearchParams({ deviceId, from, to }); - const response = await fetch(`/api/positions?${query.toString()}`, { headers }); + const response = await fetch(`/api/positions?${query.toString()}`); if (response.ok) { setIndex(0); const positions = await response.json(); -- cgit v1.2.3