kopia lustrzana https://github.com/OpenDroneMap/WebODM
Handle undefined bands case
rodzic
1100c28f94
commit
43c9e68629
|
@ -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 => {
|
||||
|
|
Ładowanie…
Reference in New Issue