Fix some bugs

This commit is contained in:
ronreg-ribdev 2020-06-05 01:28:07 -07:00
parent e4bd7d3ced
commit c538f145b1
2 changed files with 2 additions and 8 deletions

View File

@ -193,7 +193,7 @@ class RouteSearch extends Component {
<select
name="hour"
value={this.state.hour}
onChange={(evt) => this.setState({hour: evt.target.value}) } disabled={departNow}
onChange={(evt) => this.setState({hour: parseInt(evt.target.value)}) } disabled={departNow}
>
{ _.map(_.range(1, 13), (hour) => { return <option key={`h-${hour}`} value={hour}>{hour}</option>;}) }
</select>
@ -201,7 +201,7 @@ class RouteSearch extends Component {
<select
name="min"
value={this.state.min}
onChange={(evt) => this.setState({min: evt.target.value}) } disabled={departNow}
onChange={(evt) => this.setState({min: parseInt(evt.target.value)}) } disabled={departNow}
>
{ _.map(_.range(0, 60), (min) => { return <option key={`m-${min}`} value={min}>{min}</option>;}) }
</select>

View File

@ -14,12 +14,6 @@ export class Subscription {
}
initializebartinfo() {
/*
api.bind('/primary', 'PUT', api.authTokens.ship, 'bartinfo',
this.handleEvent.bind(this),
this.handleError.bind(this));
*/
api.bind("/routes", "PUT", api.authTokens.ship, "bartinfo",
this.handleEvent.bind(this),
this.handleError.bind(this));