homeJournalsPasswordContactJS Playground
‌
‌
‌
2026 Nazsnet

We use cookies for analytics and to embed external content such as Google Maps.

await 'params' before using its properties

const IssueDetailPage = async ({ params }: Props) => {m const journal = await prisma.journals.findUnique({ where: { id: (await params).id }, // * await to prevent error at the bottom }) ... }

Error: Route "/journals/[id]" used params.id. params should be awaited before using its properties -naz

Fri, 13 Dec 2024, 10:35 pm