From 85983c09f34a403bd4a3b2a646ded60fa380feea Mon Sep 17 00:00:00 2001 From: Evan Perry Date: Wed, 2 Apr 2025 11:01:09 -0600 Subject: [PATCH] Add await to params on research/[blogId] to satisfy nextjs error --- app/research/[blogId]/page.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/research/[blogId]/page.js b/app/research/[blogId]/page.js index 42ac599..2d11278 100644 --- a/app/research/[blogId]/page.js +++ b/app/research/[blogId]/page.js @@ -17,7 +17,7 @@ export async function generateStaticParams() { } export async function generateMetadata({ params }) { - const { blogId } = params; + const { blogId } = await params; const blog = await fetchBlog(blogId); if (!blog) { @@ -34,7 +34,7 @@ export async function generateMetadata({ params }) { } export default async function BlogPage({ params }) { - const { blogId } = params; + const { blogId } = await params; const blog = await fetchBlog(blogId); const content = blog.content?.rendered || ""; const sanitizedHtml = DOMPurify.sanitize(content);