From d539abf378edfefeb89c9411af0431de4be626fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Thu, 19 Nov 2020 14:03:27 +0100 Subject: for (const x of y) --- templates/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/index.js b/templates/index.js index f7550c0..3268b8b 100644 --- a/templates/index.js +++ b/templates/index.js @@ -29,7 +29,7 @@ async function postShortestPath(event){ res = await res.json() - for (edge of res.edges) { + for (const edge of res.edges) { console.log(edge) L.polyline(edge.path, { color: edge.color -- cgit v1.2.1