device-dashboard: fixed event table POST request

This commit is contained in:
robert 2023-06-23 08:03:44 -04:00
parent 5c87f2f22c
commit c63135ec7f

View File

@ -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));