From 28bf2e9d0df6e093c80d62d5fc9a27bff7d87104 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Tue, 15 Dec 2020 09:33:56 +0100 Subject: Apply 1 suggestion(s) to 1 file(s) --- templates/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/index.js b/templates/index.js index 3edbd26..0bbcdbe 100644 --- a/templates/index.js +++ b/templates/index.js @@ -62,7 +62,7 @@ showMarkers() async function showUnconnectedMarkers() { res = await fetch('/show-unconnected-nodes'); - res = await res.json(); + const res = await fetch('/show-unconnected-nodes').then(res => res.json()); for (let key in res) { var marker = L.marker(res[key]).addTo(map) } -- cgit v1.2.1