mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-22 12:17:02 +00:00
Add key prop to Brew tags
This commit is contained in:
1 parent
2bad0bfcb0
commit
99382adbf6
1 file changed
+1
-1
@@ -117,7 +117,7 @@ const BrewItem = createClass({
|
||||
<i className='fas fa-tags'/>
|
||||
{brew.tags.map((tag, idx)=>{
|
||||
const matches = tag.match(/^(?:([^:]+):)?([^:]+)$/);
|
||||
return <span className={matches[1]}>{matches[2]}</span>;
|
||||
return <span key={idx} className={matches[1]}>{matches[2]}</span>;
|
||||
})}
|
||||
</div>
|
||||
</> : <></>
|
||||
|
||||
Reference in new issue
Block a user