From a381fa1ee10509e535b2192751baf063bece1106 Mon Sep 17 00:00:00 2001 From: sietse jonker Date: Sat, 30 Mar 2024 22:57:43 +0100 Subject: [PATCH] Update fetch URL in graph-main.js --- web/newWebsite/graph-main.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/web/newWebsite/graph-main.js b/web/newWebsite/graph-main.js index c1436ed..9aba63a 100644 --- a/web/newWebsite/graph-main.js +++ b/web/newWebsite/graph-main.js @@ -109,15 +109,14 @@ function createFilterContainer() { // Get request to fetch data from the server function fetchData() { - fetch("http://145.92.8.114/getNodeInfo") + fetch("http://145.92.8.114/getMeasurements") .then((response) => { if (!response.ok) { throw new Error("Network response was not ok"); } return response.json(); }) - .then((data) => { - data.push(...data); + .then((measurements) => { createFilterContainer(); }) .catch((error) => {