From 316527b575b1a2aa31d81b1d11a436ae48a5527d Mon Sep 17 00:00:00 2001 From: "Phyks (Lucas Verney)" Date: Sat, 25 Aug 2018 16:09:38 +0200 Subject: [PATCH] Fix a bug with sharing map view --- src/views/Map.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/Map.vue b/src/views/Map.vue index d3b899a..5c208e1 100644 --- a/src/views/Map.vue +++ b/src/views/Map.vue @@ -98,7 +98,7 @@ export default { return [currentLocation.latitude, currentLocation.longitude]; }, currentLocation() { - return this.$store.getters.getLastLocation; + return this.$store.getters.getLastLocation || {}; }, error() { const errorCode = this.$store.state.location.error;