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:
parent
6d41ce1008
commit
ca6108f4c3
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ class BlogIndex extends React.Component {
|
||||||
const title = get(post, "node.frontmatter.title") || post.node.path
|
const title = get(post, "node.frontmatter.title") || post.node.path
|
||||||
pageLinks.push(
|
pageLinks.push(
|
||||||
<li
|
<li
|
||||||
key={post.node.path}
|
key={post.node.frontmatter.path}
|
||||||
style={{
|
style={{
|
||||||
marginBottom: rhythm(1 / 4),
|
marginBottom: rhythm(1 / 4),
|
||||||
}}
|
}}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue