From 4f33e3934a69a04d0a4ea34e7c393323272fdfdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Hallundb=C3=A6k?= <72447095+tha-nordiq@users.noreply.github.com> Date: Thu, 30 May 2024 08:22:03 +0200 Subject: [PATCH] selected layers should not be considered when "enableInfoForSelectedLayers" is off (#10377) --- web/client/epics/identify.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/client/epics/identify.js b/web/client/epics/identify.js index 2bf76cb985..e375336595 100644 --- a/web/client/epics/identify.js +++ b/web/client/epics/identify.js @@ -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()); }