Interactive interface for browsing global, full-resolution satellite imagery
activeKeyObj variable updated to use isRunningDataState rather than isRunningData. It needed to point to state value rather than prop.
Jason Hurleye8d03ccbcc06
diff --git a/web/js/components/sidebar/paletteLegend.js b/web/js/components/sidebar/paletteLegend.jsindex b20e02c07..f8955479c 100644--- a/web/js/components/sidebar/paletteLegend.js+++ b/web/js/components/sidebar/paletteLegend.js@@ -393,7 +393,7 @@ function PaletteLegend(props) {? `${legendTooltip} - ${getOrbitTrackTitle(layer)}`: getOrbitTrackTitle(layer);const palette = getPalette(layer.id, legendIndex);- const activeKeyObj = isRunningData && colorHexState &&+ const activeKeyObj = isRunningDataState && colorHexState &&getLegendObject(legend, colorHexState, 5, palette);const legendClass = activeKeyObj? 'wv-running wv-palettes-legend wv-palettes-classes'