Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

fix conditional

Ed Platoa0fd7a6e58eb
diff --git a/web/js/modules/vector-styles/selectors.js b/web/js/modules/vector-styles/selectors.js
index 04fc1bd7c..173c48664 100644
--- a/web/js/modules/vector-styles/selectors.js
+++ b/web/js/modules/vector-styles/selectors.js
@@ -93,7 +93,7 @@ export function setStyleFunction(def, vectorStyleId, vectorStyles, layer, state)
if (olMap) {
layerGroups = olMap.getLayers().getArray();
if (compare && compare.active) {
- if (layerGroups.length === 2) {
+ if (layerGroups.length > 1) {
layerGroup = layerGroups[0].get('group') === compare.activeString
? layerGroups[0]
: layerGroups[1].get('group') === compare.activeString