Skip to content

Commit

Permalink
Removed removal of layers
Browse files Browse the repository at this point in the history
  • Loading branch information
christof-wittreich committed Aug 15, 2024
1 parent 4232035 commit 7f5b6f2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions web/js/modules/layers/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 7f5b6f2

Please sign in to comment.