Fix a bug with sharing map view

This commit is contained in:
Lucas Verney 2018-08-25 16:09:38 +02:00
parent 7a7cd21376
commit 316527b575

View File

@ -98,7 +98,7 @@ export default {
return [currentLocation.latitude, currentLocation.longitude]; return [currentLocation.latitude, currentLocation.longitude];
}, },
currentLocation() { currentLocation() {
return this.$store.getters.getLastLocation; return this.$store.getters.getLastLocation || {};
}, },
error() { error() {
const errorCode = this.$store.state.location.error; const errorCode = this.$store.state.location.error;