Elevation layer units update works

pull/1496/head
Piero Toffanin 2024-05-11 12:51:37 -04:00
rodzic 57ccd23234
commit 35fc60aa2c
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -263,7 +263,10 @@ export default class Histogram extends React.Component {
handleUnitSystemChanged = e => {
this.redraw();
this.forceUpdate();
this.setState({
minInput: this.props.unitForward(this.state.min).toFixed(3),
maxInput: this.props.unitForward(this.state.max).toFixed(3)
});
}
componentDidUpdate(prevProps, prevState){