From a56475f2b869962dcf7bbad276db1553fef203ab Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Thu, 18 Jun 2020 16:00:56 +0300 Subject: fix(map): update fasta count key --- bh20simplewebuploader/static/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bh20simplewebuploader/static/main.js b/bh20simplewebuploader/static/main.js index d9b182e..a9dfc10 100644 --- a/bh20simplewebuploader/static/main.js +++ b/bh20simplewebuploader/static/main.js @@ -32,12 +32,13 @@ function fetchAPI(apiEndPoint) { return response.json(); }) .then(data => { + console.log(data); markers.clearLayers(); document.getElementById("results").classList.remove("invisible"); document.getElementById("loader").classList.add("invisible"); if (!(apiEndPoint === "/api/getAllaccessions")) { for (let i = 0; i < data.length; i++) { - let {"Fasta Count": fastaCount, GPS, LocationLabel: label } = data[i]; + let {"count": fastaCount, GPS, LocationLabel: label } = data[i]; let coordinates = GPS.split(" "); if (!(coordinates == null)) { let lat, lon; -- cgit v1.2.3