diff --git a/app/static/app/js/components/LayersControlLayer.jsx b/app/static/app/js/components/LayersControlLayer.jsx index bd6bf231..67b72efb 100644 --- a/app/static/app/js/components/LayersControlLayer.jsx +++ b/app/static/app/js/components/LayersControlLayer.jsx @@ -136,7 +136,9 @@ export default class LayersControlLayer extends React.Component { const algo = this.getAlgorithm(e.target.value); if (algo && algo['filters'].indexOf(bands) === -1) bands = algo['filters'][0]; // Pick first - this.setState({formula: e.target.value, bands}); + if (bands !== undefined){ + this.setState({formula: e.target.value, bands}); + } } getAlgorithm = id => {