mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-04 01:42:42 +00:00
Fix "No tags" message
This commit is contained in:
@@ -34,7 +34,7 @@ const MetadataNav = createClass({
|
|||||||
},
|
},
|
||||||
|
|
||||||
getTags : function(){
|
getTags : function(){
|
||||||
if(!this.props.brew.tags) return 'No tags';
|
if(this.props.brew.tags.length == 0) return 'No tags';
|
||||||
return <>
|
return <>
|
||||||
{this.props.brew.tags.map((tag, idx)=>{
|
{this.props.brew.tags.map((tag, idx)=>{
|
||||||
return <span className='tag' key={idx}>{tag}</span>;
|
return <span className='tag' key={idx}>{tag}</span>;
|
||||||
|
|||||||
Reference in New Issue
Block a user