mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-07-26 12:12:41 +02:00
Merge pull request #45 from ybbarng/master
Fixes a crash when a post has no tag
This commit is contained in:
@@ -19,7 +19,7 @@ class PostTemplateDetails extends React.Component {
|
||||
const tagsBlock = (
|
||||
<div className="post-single__tags">
|
||||
<ul className="post-single__tags-list">
|
||||
{tags.map((tag, i) =>
|
||||
{tags && tags.map((tag, i) =>
|
||||
<li className="post-single__tags-list-item" key={tag}>
|
||||
<Link to={tag} className="post-single__tags-list-item-link">
|
||||
{post.frontmatter.tags[i]}
|
||||
|
Reference in New Issue
Block a user