Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

make sure tracks work properly in compare mode

Jason Kent2111db46f847
diff --git a/web/js/containers/sidebar/layer.js b/web/js/containers/sidebar/layer.js
index 30c9082f0..f3a6dc8c2 100644
--- a/web/js/containers/sidebar/layer.js
+++ b/web/js/containers/sidebar/layer.js
@@ -322,7 +322,7 @@ function mapStateToProps(state, ownProps) {
? getPaletteLegends(layer.id, layerGroupName, state)
: [];
const isCustomPalette = hasPalette && palettes.custom[layer.id];
- const tracksForLayer = layers.active.filter(activeLayer => {
+ const tracksForLayer = layers[layerGroupName].filter(activeLayer => {
return (layer.tracks || []).some(track => activeLayer.id === track);
});