diff --git a/client/homebrew/editor/snippetbar/snippetbar.jsx b/client/homebrew/editor/snippetbar/snippetbar.jsx index 8557285f7..a78bfa1f7 100644 --- a/client/homebrew/editor/snippetbar/snippetbar.jsx +++ b/client/homebrew/editor/snippetbar/snippetbar.jsx @@ -91,9 +91,7 @@ const Snippetbar = createClass({ }, renderSnippetGroups : function(){ - let snippets = []; - - snippets = this.state.snippets.filter((snippetGroup)=>snippetGroup.view === this.props.view); + const snippets = this.state.snippets.filter((snippetGroup)=>snippetGroup.view === this.props.view); return _.map(snippets, (snippetGroup)=>{ return