From 1e647cbdfc159d6d3905c5af0ece6ce4255ea80a Mon Sep 17 00:00:00 2001 From: Asaad Mahmood Date: Thu, 27 Aug 2015 20:46:25 +0500 Subject: MM-1899 - Updating UI for commands in input box --- web/react/components/command_list.jsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'web/react') diff --git a/web/react/components/command_list.jsx b/web/react/components/command_list.jsx index 5efe98dc6..8f8f9d08d 100644 --- a/web/react/components/command_list.jsx +++ b/web/react/components/command_list.jsx @@ -44,19 +44,21 @@ module.exports = React.createClass({ var suggestions = []; + console.log(this.state.suggestions.length); + for (var i = 0; i < this.state.suggestions.length; i++) { if (this.state.suggestions[i].suggestion != this.state.cmd) { suggestions.push(
-
{ this.state.suggestions[i].suggestion }
-
{ this.state.suggestions[i].description }
+
{ this.state.suggestions[i].suggestion }
+
{ this.state.suggestions[i].description }
); } } return ( -
+
{ suggestions }
); -- cgit v1.2.3-1-g7c22 From 2b55ffb026559862fabd15e02fc69ac0ecc9dd2f Mon Sep 17 00:00:00 2001 From: Asaad Mahmood Date: Thu, 27 Aug 2015 21:17:45 +0500 Subject: Removing console.log from command_list --- web/react/components/command_list.jsx | 2 -- 1 file changed, 2 deletions(-) (limited to 'web/react') diff --git a/web/react/components/command_list.jsx b/web/react/components/command_list.jsx index 8f8f9d08d..27264ff6e 100644 --- a/web/react/components/command_list.jsx +++ b/web/react/components/command_list.jsx @@ -44,8 +44,6 @@ module.exports = React.createClass({ var suggestions = []; - console.log(this.state.suggestions.length); - for (var i = 0; i < this.state.suggestions.length; i++) { if (this.state.suggestions[i].suggestion != this.state.cmd) { suggestions.push( -- cgit v1.2.3-1-g7c22