diff --git a/src/iss-components/google-map/google-map.vue b/src/iss-components/google-map/google-map.vue index ea71a8f9..273c382c 100644 --- a/src/iss-components/google-map/google-map.vue +++ b/src/iss-components/google-map/google-map.vue @@ -29,9 +29,10 @@ export default { } }, async beforeMount() { - if (this.markers && this.markers.length > 0) { - await this.createMapWithMarkersForAddresses(this.markers); - } + await this.createMapWithMarkersForAddresses(this.markers) + .catch(() => { + console.error('Error creating map with markers: if handled jest fails to run tests'); + }); }, methods: { async getMap(center) {