Skip to content

Commit c4a0931

Browse files
committed
Fix unique key warning
1 parent 092d763 commit c4a0931

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/templates/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class IndexPage extends React.Component {
6161
to={nextUrl}
6262
disabled={last}
6363
style={{
64-
"pointer-events": last ? "none" : "auto"
64+
pointerEvents: last ? "none" : "auto"
6565
}}
6666
>
6767
Next Page
@@ -75,7 +75,7 @@ class IndexPage extends React.Component {
7575
const url = pageNum === 1 ? "" : `/page/${pageNum}`;
7676

7777
return (
78-
<li>
78+
<li key={i}>
7979
<Link
8080
className={
8181
"pagination-link" + (isCurrent ? " is-current" : "")

src/templates/post.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,6 @@ export const PostTemplate = ({ content, frontmatter, slug }) => {
8484
const Post = ({ data, pageContext }) => {
8585
const { markdownRemark: post } = data;
8686

87-
console.log("pageContext", pageContext);
88-
8987
const { next } = pageContext;
9088

9189
return (

0 commit comments

Comments
 (0)