Skip to content

Commit

Permalink
Fix variable shadowing in blog-starter example (vercel#13988)
Browse files Browse the repository at this point in the history
Sorry for the super trivial PR. I noticed this while working with the example and figured it might be worth fixing.
  • Loading branch information
jamesmosier authored and rokinsky committed Jul 11, 2020
1 parent b84abb0 commit 8300c90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/blog-starter/pages/posts/[slug].js
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ export async function getStaticPaths() {
const posts = getAllPosts(['slug'])

return {
paths: posts.map((posts) => {
paths: posts.map((post) => {
return {
params: {
slug: posts.slug,
slug: post.slug,
},
}
}),
Expand Down

0 comments on commit 8300c90

Please sign in to comment.