summaryrefslogtreecommitdiff
path: root/client/map/index.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2019-03-22 00:23:29 +0100
committerJules Laplace <julescarbon@gmail.com>2019-03-22 00:23:29 +0100
commit35f19bdca7ac68829fd781827d25deb4bfc734d2 (patch)
treeb36b5a4629a48b6797183f8f83277f130f39b218 /client/map/index.js
parent94e0a98f1279f27e7cb123ab572bfae9c15746c1 (diff)
rebuild and update js linkx
Diffstat (limited to 'client/map/index.js')
-rw-r--r--client/map/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/map/index.js b/client/map/index.js
index 9f4cc623..7c205268 100644
--- a/client/map/index.js
+++ b/client/map/index.js
@@ -87,7 +87,7 @@ export default function append(el, payload) {
}).addTo(map)
if (address) {
- source = [address.lat, address.lng].map(n => parseFloat(n))
+ source = [address.lat, address.lng].map(n => (parseFloat(n) || 0))
} else {
console.error("No address found for root paper")
// console.log(data)