kopia lustrzana https://github.com/OpenDroneMap/WebODM
Handle undefined bands case
rodzic
1100c28f94
commit
43c9e68629
|
@ -136,8 +136,10 @@ export default class LayersControlLayer extends React.Component {
|
||||||
const algo = this.getAlgorithm(e.target.value);
|
const algo = this.getAlgorithm(e.target.value);
|
||||||
if (algo && algo['filters'].indexOf(bands) === -1) bands = algo['filters'][0]; // Pick first
|
if (algo && algo['filters'].indexOf(bands) === -1) bands = algo['filters'][0]; // Pick first
|
||||||
|
|
||||||
|
if (bands !== undefined){
|
||||||
this.setState({formula: e.target.value, bands});
|
this.setState({formula: e.target.value, bands});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
getAlgorithm = id => {
|
getAlgorithm = id => {
|
||||||
const { algorithms } = this.tmeta;
|
const { algorithms } = this.tmeta;
|
||||||
|
|
Ładowanie…
Reference in New Issue