fix misc issues reported by linter

This commit is contained in:
Iuri Matias 2018-10-14 13:22:51 -04:00 committed by Pascal Precht
parent 6f0be96243
commit f5479baf4c
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
2 changed files with 1 additions and 5 deletions

View File

@ -77,8 +77,6 @@ class Console extends Component {
} }
render() { render() {
const {value} = this.state;
return ( return (
<Row> <Row>
<Col> <Col>
@ -93,7 +91,6 @@ class Console extends Component {
emptyLabel={false} emptyLabel={false}
labelKey="value" labelKey="value"
multiple={false} multiple={false}
emptyLabel={false}
maxResults={10} maxResults={10}
isLoading={this.state.isLoading} isLoading={this.state.isLoading}
onInputChange={(text) => this.handleChange(text)} onInputChange={(text) => this.handleChange(text)}
@ -118,7 +115,6 @@ class Console extends Component {
maxHeight="200px" maxHeight="200px"
placeholder="Type a command (e.g help)" placeholder="Type a command (e.g help)"
options={this.props.command_suggestions} options={this.props.command_suggestions}
placeholder="Choose a state..."
renderMenuItemChildren={(option) => ( renderMenuItemChildren={(option) => (
<div> <div>
{option.value} {option.value}

View File

@ -48,7 +48,7 @@ const sorter = {
let a_levels = a.value.split('.').length let a_levels = a.value.split('.').length
let b_levels = b.value.split('.').length let b_levels = b.value.split('.').length
let diff = b_levels - a_levels let diff = b_levels - a_levels
if (diff !== 0) return lengthDiff * -1 if (diff !== 0) return diff * -1
} }
let lengthDiff = b.value.length - a.value.length; let lengthDiff = b.value.length - a.value.length;
if (lengthDiff !== 0) return lengthDiff * -1 if (lengthDiff !== 0) return lengthDiff * -1