mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
Don't barf if we are asked to remove a layer that we don't have
This commit is contained in:
@@ -94,6 +94,10 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
|
||||
},
|
||||
|
||||
removeLayer: function (layer) {
|
||||
if (!layer.__parent) {
|
||||
return this;
|
||||
}
|
||||
|
||||
if (this._unspiderfy) {
|
||||
this._unspiderfy();
|
||||
this._unspiderfyLayer(layer);
|
||||
|
||||
Reference in New Issue
Block a user