From c63135ec7f88d3d5ff0496395f16586fdf0ad927 Mon Sep 17 00:00:00 2001 From: robert Date: Fri, 23 Jun 2023 08:03:44 -0400 Subject: [PATCH] device-dashboard: fixed event table POST request --- examples/device-dashboard/web_root/main.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/examples/device-dashboard/web_root/main.js b/examples/device-dashboard/web_root/main.js index 9ab41ba1..efa5f68d 100644 --- a/examples/device-dashboard/web_root/main.js +++ b/examples/device-dashboard/web_root/main.js @@ -55,15 +55,8 @@ function Events({}) { const [page, setPage] = useState(1); const refresh = () => - fetch('/api/events/get', - { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - }, - body: JSON.stringify({ - page: page - }), + fetch('/api/events/get', { + method: 'POST', body: JSON.stringify({page: page}), }).then(r => r.json()) .then(r => setEvents(r));