@bmlt-enabled/croutonjs 3.18.3 → 3.18.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/crouton-gmaps.js CHANGED
@@ -17254,7 +17254,10 @@ Crouton.prototype.render = function(doMeetingMap = false) {
17254
17254
  jQuery("#bmlt-map").removeClass("hide");
17255
17255
  }
17256
17256
  if (self.config['map_page'] && !doMeetingMap) {
17257
- croutonMap.initialize('byfield_embeddedMapPage', self.meetingData);
17257
+ if (self.meetingData.filter(m => m.venue_type != 2).length==0) {
17258
+ jQuery('#filterButton_embeddedMapPage').addClass('hide');
17259
+ }
17260
+ else croutonMap.initialize('byfield_embeddedMapPage', self.meetingData);
17258
17261
  }
17259
17262
  if (self.config['refresh_map']) {
17260
17263
  croutonMap.refreshMeetings(self.meetingData, true, true);