mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-17 10:12:40 +00:00
not render snippets element if empty
This commit is contained in:
@@ -150,6 +150,7 @@ const Snippetbar = createClass({
|
||||
|
||||
renderSnippetGroups : function(){
|
||||
const snippets = this.state.snippets.filter((snippetGroup)=>snippetGroup.view === this.props.view);
|
||||
if(snippets.length === 0) return null;
|
||||
|
||||
return <div className='snippets'>
|
||||
{_.map(snippets, (snippetGroup)=>{
|
||||
|
||||
Reference in New Issue
Block a user