diff options
Diffstat (limited to 'web/react/components/command_list.jsx')
-rw-r--r-- | web/react/components/command_list.jsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web/react/components/command_list.jsx b/web/react/components/command_list.jsx index a6d9d5d70..9b479b973 100644 --- a/web/react/components/command_list.jsx +++ b/web/react/components/command_list.jsx @@ -13,14 +13,14 @@ export default class CommandList extends React.Component { this.getSuggestedCommands = this.getSuggestedCommands.bind(this); this.state = { - suggestions: [ ], + suggestions: [], cmd: '' }; } handleClick(i) { this.props.addCommand(this.state.suggestions[i].suggestion); - this.setState({suggestions: [ ], cmd: ''}); + this.setState({suggestions: [], cmd: ''}); } addFirstCommand() { @@ -36,7 +36,7 @@ export default class CommandList extends React.Component { getSuggestedCommands(cmd) { if (!cmd || cmd.charAt(0) !== '/') { - this.setState({suggestions: [ ], cmd: ''}); + this.setState({suggestions: [], cmd: ''}); return; } |