Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Prevented squash palette button from lowing max (#4569)

christof-wittreich619f56858c47
diff --git a/web/js/components/layer/settings/palette-threshold.js b/web/js/components/layer/settings/palette-threshold.js
index 2e4b8a918..7aa04a1be 100644
--- a/web/js/components/layer/settings/palette-threshold.js
+++ b/web/js/components/layer/settings/palette-threshold.js
@@ -36,7 +36,7 @@ class PaletteThreshold extends React.Component {
setRange(
layerId,
parseFloat(palette.entries.refs.indexOf(startIndex)),
- parseFloat(palette.entries.refs.indexOf(endIndex)),
+ parseFloat(palette.entries.refs.lastIndexOf(endIndex)),
isSquashed,
index,
groupName,