Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

remove logs

Benjamin Kinga3cbaa3805bd
diff --git a/web/js/components/sidebar/data/data.js b/web/js/components/sidebar/data/data.js
index 8d7f9a3d9..22d0129b9 100644
--- a/web/js/components/sidebar/data/data.js
+++ b/web/js/components/sidebar/data/data.js
@@ -72,7 +72,7 @@ function mapStateToProps(state, ownProps) {
const { tabTypes } = ownProps;
const { layers, proj, data, config, compare } = state;
const { selectedProduct, selectedGranules } = data;
- const activeString = compare.isCompareA ? 'active' : 'activeB';
+ const activeString = compare.activeString;
const activeLayers = layers[activeString];
const counts = getSelectionCounts(activeLayers, selectedGranules);
const products = getDataProductsFromActiveLayers(
diff --git a/web/js/components/sidebar/products/legend.js b/web/js/components/sidebar/products/legend.js
index 75534957e..f1b98fa0e 100644
--- a/web/js/components/sidebar/products/legend.js
+++ b/web/js/components/sidebar/products/legend.js
@@ -127,7 +127,6 @@ class Legend extends React.Component {
// This value is needed for calculating running data offsets
this.setState({ width: newWidth });
}
- console.log(colorMap);
drawPaletteOnCanvas(
this[ctxStr].current.getContext('2d'),
checkerBoardPattern,
@@ -379,7 +378,6 @@ class Legend extends React.Component {
const { paletteId, layer, isCustomPalette } = this.props;
const { isHoveringLegend } = this.state;
const customClass = isCustomPalette ? ' is_custom' : '';
- console.log(isCustomPalette);
if (!layer.palette) return;
return (
<div