Fix release change crash
This commit is contained in:
@@ -219,7 +219,7 @@ class App extends Component {
|
||||
|
||||
handleReleaseChanged = (e) => {
|
||||
const val = parseInt(e.target.value, 10);
|
||||
const versionIndex = this.state.VersionLookup[this.state.ReleaseTypes[this.state.Release]].length - 1;
|
||||
const versionIndex = this.state.VersionLookup[this.state.ReleaseTypes[val]].length - 1;
|
||||
this.setState({
|
||||
Release: val,
|
||||
Version: versionIndex
|
||||
|
||||
Reference in New Issue
Block a user