Fixed a issue that caused following bug

Warning: Each child in an array or iterator should have a unique "key" prop. Check the render method of `BlogIndex`. See https://fb.me/react-warning-keys for more information.
This commit is contained in:
Meher Ranjan 2017-07-12 02:28:26 +05:30 committed by GitHub
parent 6d41ce1008
commit ca6108f4c3

View file

@ -17,7 +17,7 @@ class BlogIndex extends React.Component {
const title = get(post, "node.frontmatter.title") || post.node.path
pageLinks.push(
<li
key={post.node.path}
key={post.node.frontmatter.path}
style={{
marginBottom: rhythm(1 / 4),
}}