mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
Handle removeLayers([]) where some elements aren't in the MarkerClusterGroup
This commit is contained in:
@@ -156,6 +156,11 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
|
||||
|
||||
for (i = 0, l = layersArray.length; i < l; i++) {
|
||||
m = layersArray[i];
|
||||
|
||||
if (!m.__parent) {
|
||||
continue;
|
||||
}
|
||||
|
||||
this._removeLayer(m, true, true);
|
||||
|
||||
if (m._icon) {
|
||||
|
||||
Reference in New Issue
Block a user