mirror of https://github.com/embarklabs/embark.git
fix misc issues reported by linter
This commit is contained in:
parent
6f0be96243
commit
f5479baf4c
|
@ -77,8 +77,6 @@ class Console extends Component {
|
|||
}
|
||||
|
||||
render() {
|
||||
const {value} = this.state;
|
||||
|
||||
return (
|
||||
<Row>
|
||||
<Col>
|
||||
|
@ -93,7 +91,6 @@ class Console extends Component {
|
|||
emptyLabel={false}
|
||||
labelKey="value"
|
||||
multiple={false}
|
||||
emptyLabel={false}
|
||||
maxResults={10}
|
||||
isLoading={this.state.isLoading}
|
||||
onInputChange={(text) => this.handleChange(text)}
|
||||
|
@ -118,7 +115,6 @@ class Console extends Component {
|
|||
maxHeight="200px"
|
||||
placeholder="Type a command (e.g help)"
|
||||
options={this.props.command_suggestions}
|
||||
placeholder="Choose a state..."
|
||||
renderMenuItemChildren={(option) => (
|
||||
<div>
|
||||
{option.value}
|
||||
|
|
|
@ -48,7 +48,7 @@ const sorter = {
|
|||
let a_levels = a.value.split('.').length
|
||||
let b_levels = b.value.split('.').length
|
||||
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;
|
||||
if (lengthDiff !== 0) return lengthDiff * -1
|
||||
|
|
Loading…
Reference in New Issue