Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

fix color issue - Edge #2576

Benjamin Kingdf022ad5b30e
diff --git a/web/js/components/layer/settings/classification-toggle.js b/web/js/components/layer/settings/classification-toggle.js
index 4387948ab..c0af1cced 100644
--- a/web/js/components/layer/settings/classification-toggle.js
+++ b/web/js/components/layer/settings/classification-toggle.js
@@ -1,6 +1,5 @@
import React from 'react';
import PropTypes from 'prop-types';
-// import { CustomInput } from 'reactstrap';
import Switch from '../../util/switch';
import Scrollbar from '../../util/scrollbar';
@@ -27,7 +26,7 @@ class ClassificationToggle extends React.Component {
<Switch
id={id}
key={id}
- color={color}
+ color={color.substring(0, 6)}
label={tooltip}
active={!inActive}
toggle={() => toggle(index)}