diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2015-11-20 09:22:16 -0500 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2015-11-20 09:22:16 -0500 |
commit | 25bc02c785167370b0e2e04ee04f305a801078c4 (patch) | |
tree | 00a8e7c9821fc8d8669fd7a908b3f70e3089c95a /web/react/components/command_list.jsx | |
parent | 3aea449b524f7bbc9bae92309fb702e04c1bf01e (diff) | |
parent | 34097faa13dab6ea5d7ac992842126c17ad4d2b9 (diff) | |
download | chat-25bc02c785167370b0e2e04ee04f305a801078c4.tar.gz chat-25bc02c785167370b0e2e04ee04f305a801078c4.tar.bz2 chat-25bc02c785167370b0e2e04ee04f305a801078c4.zip |
Merge pull request #1478 from mattermost/plt-1237
PLT-1237 Upgrading dependancies
Diffstat (limited to 'web/react/components/command_list.jsx')
-rw-r--r-- | web/react/components/command_list.jsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/web/react/components/command_list.jsx b/web/react/components/command_list.jsx index a6d9d5d70..ff83d0420 100644 --- a/web/react/components/command_list.jsx +++ b/web/react/components/command_list.jsx @@ -1,7 +1,7 @@ // Copyright (c) 2015 Mattermost, Inc. All Rights Reserved. // See License.txt for license information. -var client = require('../utils/client.jsx'); +import * as client from '../utils/client.jsx'; export default class CommandList extends React.Component { constructor(props) { @@ -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; } |