Skip to content

Commit

Permalink
accessing mapMarkers after checking mapData (#206) (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
aginsberg authored and Julian Delerme committed Sep 9, 2019
1 parent db43e43 commit 9cbe91f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ui/components/map/providers/googlemapprovider.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,11 @@ export default class GoogleMapProvider extends MapProvider {
zoom: this._zoom
});

const collapsedMarkers = this._collapseMarkers(mapData.mapMarkers);

// Apply our search data to our GoogleMap
let bounds = new google.maps.LatLngBounds();

if (mapData && mapData.mapMarkers.length) {
const collapsedMarkers = this._collapseMarkers(mapData.mapMarkers);
let googleMapMarkerConfigs = GoogleMapMarkerConfig.from(
collapsedMarkers,
this._pinConfig,
Expand Down

0 comments on commit 9cbe91f

Please sign in to comment.