0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 18:32:41 +00:00

Fix "No tags" message

This commit is contained in:
G.Ambatte
2023-04-09 21:33:57 +12:00
parent bc83e1f84d
commit d5dbf46fc4

View File

@@ -34,7 +34,7 @@ const MetadataNav = createClass({
},
getTags : function(){
if(!this.props.brew.tags) return 'No tags';
if(this.props.brew.tags.length == 0) return 'No tags';
return <>
{this.props.brew.tags.map((tag, idx)=>{
return <span className='tag' key={idx}>{tag}</span>;