Skip to content

Commit

Permalink
dont show hidden layers as options in polygon dropdown menu
Browse files Browse the repository at this point in the history
  • Loading branch information
igorDykhta committed Jan 15, 2023
1 parent a66f98f commit 950dffc
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 950dffc

Please sign in to comment.