未验证 提交 aed8b375 编写于 作者: J James Mosier 提交者: GitHub

Fix variable shadowing in blog-starter example (#13988)

Sorry for the super trivial PR. I noticed this while working with the example and figured it might be worth fixing. 
上级 d51fef5f
......@@ -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,
},
}
}),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册