mirror of
https://github.com/StefBuwalda/dashboard_test.git
synced 2025-10-30 03:09:59 +00:00
Change the frontend to update every 5 seconds
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
})
|
||||
.catch(error => console.error("Error fetching data", error))
|
||||
.finally(() => {
|
||||
setTimeout(fetchData, 1000); // schedule next request after 1 second
|
||||
setTimeout(fetchData, 5000); // schedule next request after 5 seconds
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user