Skip to content

Commit

Permalink
selected layers should not be considered when "enableInfoForSelectedL…
Browse files Browse the repository at this point in the history
…ayers" is off (#10377)
  • Loading branch information
tha-nordiq committed May 30, 2024
1 parent fc288aa commit 4f33e39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/client/epics/identify.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const getFeatureInfoOnFeatureInfoClick = (action$, { getState = () => { }

const selectedLayers = selectedNodesSelector(getState());

if (queryableLayers.length === 0 || queryableSelectedLayers.length === 0 && selectedLayers.length !== 0) {
if (queryableLayers.length === 0 || enableInfoForSelectedLayers && queryableSelectedLayers.length === 0 && selectedLayers.length !== 0) {
return Rx.Observable.of(purgeMapInfoResults(), noQueryableLayers());
}

Expand Down

0 comments on commit 4f33e39

Please sign in to comment.