Interactive interface for browsing global, full-resolution satellite imagery
WV-595: No longer crashes when removing layer while selections are active
Mike McGann0fcde454368e
diff --git a/src/js/Worldview/DataDownload/Layers/Selection.js b/src/js/Worldview/DataDownload/Layers/Selection.jsindex 394230afe..a93c03b2f 100644--- a/src/js/Worldview/DataDownload/Layers/Selection.js+++ b/src/js/Worldview/DataDownload/Layers/Selection.js@@ -78,6 +78,9 @@ Worldview.DataDownload.Layers.Selection = function(model, maps, config) {return;}var feature = features[granule.id];+ if ( !feature ) {+ return;+ }getLayer().removeFeatures([feature]);getLayer().redraw();delete features[granule.id];