Skip to content

Commit

Permalink
docs: incorrect params.id (#73045)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyungjikim authored Nov 21, 2024
1 parent 58b993c commit c9aa992
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ export default async function Page({
params: Promise<{ id: string }>
}) {
const id = (await params).id
const post: Post = await fetch(
`https://api.vercel.app/blog/${params.id}`
).then((res) => res.json())
const post: Post = await fetch(`https://api.vercel.app/blog/${id}`).then(
(res) => res.json()
)
return (
<main>
<h1>{post.title}</h1>
Expand Down

0 comments on commit c9aa992

Please sign in to comment.