Interactive interface for browsing global, full-resolution satellite imagery
Removed removal of layers (#5410)
christof-wittreich0d5512cd608f
diff --git a/web/js/modules/layers/selectors.js b/web/js/modules/layers/selectors.jsindex 47a2d67c5..ab3e9b430 100644--- a/web/js/modules/layers/selectors.js+++ b/web/js/modules/layers/selectors.js@@ -22,10 +22,7 @@ const getConfig = ({ config }) => config;const getLayerId = (state, { layer }) => layer && layer.id;export function addLayer(id, spec = {}, layersParam, layerConfig, overlayLength, projection, groupOverlays, bandComboParam, selectedPresetParam) {- let layers = lodashCloneDeep(layersParam);- if (projection) {- layers = layers.filter((layer) => layer.projections[projection]);- }+ const layers = lodashCloneDeep(layersParam);if (lodashFind(layers, { id })) {return layers;}