Fix release change crash

This commit is contained in:
Scott E. Graves
2018-10-02 16:45:02 -05:00
parent aedcbdf898
commit 51ca79fd4f

View File

@@ -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