0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-27 11:32:38 +00:00

Change let to const

This commit is contained in:
Trevor Buckner
2022-06-21 15:59:28 -04:00
parent 2e27e9f8f6
commit 1e1a3d891a

View File

@@ -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 <SnippetGroup