Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Commit

Permalink
[typo] posts.map( posts => {} ) in examples/blog-starter-typescript (v…
Browse files Browse the repository at this point in the history
…ercel#27523)

In `examples/blog-starter-typescript/pages/posts/[slug].tsx`

before:
 `posts.map(posts => {})`

after:
`posts.map(post => {})`

## Documentation / Examples

- [x] Make sure the linting passes
  • Loading branch information
shibe23 authored Jul 27, 2021
1 parent 97a140f commit 735fac7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/blog-starter-typescript/pages/posts/[slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,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 735fac7

Please sign in to comment.