aboutsummaryrefslogtreecommitdiff
path: root/bh20simplewebuploader/static
diff options
context:
space:
mode:
authorBonfaceKilz2020-06-18 16:00:56 +0300
committerBonfaceKilz2020-06-18 16:00:56 +0300
commita56475f2b869962dcf7bbad276db1553fef203ab (patch)
tree688403560941fae8b1b9115b029c8b5bfcf8b042 /bh20simplewebuploader/static
parentf062b82f4e01523c95d47bc6f4182555e27ed213 (diff)
downloadbh20-seq-resource-a56475f2b869962dcf7bbad276db1553fef203ab.tar.gz
bh20-seq-resource-a56475f2b869962dcf7bbad276db1553fef203ab.tar.lz
bh20-seq-resource-a56475f2b869962dcf7bbad276db1553fef203ab.zip
fix(map): update fasta count key
Diffstat (limited to 'bh20simplewebuploader/static')
-rw-r--r--bh20simplewebuploader/static/main.js3
1 files changed, 2 insertions, 1 deletions
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;