Skip to content

Commit

Permalink
[fix] dont show hidden layers as options in polygon dropdown menu (#2085
Browse files Browse the repository at this point in the history
)
  • Loading branch information
igorDykhta committed Jan 18, 2023
1 parent fd3a7a8 commit d24ea4a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/src/editor/editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ export default function EditorFactory(
);

availableLayersSelector = createSelector(this.layerSelector, layers =>
layers.filter(editorLayerFilter).filter(layer => layer.id !== GEOCODER_LAYER_ID)
layers
.filter(editorLayerFilter)
.filter(layer => layer.config?.isVisible && layer.id !== GEOCODER_LAYER_ID)
);

allFeaturesSelector = createSelector(
Expand Down

0 comments on commit d24ea4a

Please sign in to comment.