mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 00:24:21 +02:00
Don't break if calling hasLayer with null. Fixes #170. Thanks @l0c0luke
This commit is contained in:
@@ -261,7 +261,7 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
|
||||
|
||||
//Returns true if the given layer is in this MarkerClusterGroup
|
||||
hasLayer: function (layer) {
|
||||
if (layer._noHas) {
|
||||
if (!layer || layer._noHas) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user