summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--templates/index.js2
1 files changed, 1 insertions, 1 deletions
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)
}