diff --git a/src/app/blogs/[blogid]/page.js b/src/app/blogs/[blogid]/page.js index ad85483..d211c6c 100644 --- a/src/app/blogs/[blogid]/page.js +++ b/src/app/blogs/[blogid]/page.js @@ -23,7 +23,7 @@ const BlogId = ({ params }) => { const data = await response.json(); console.log("check", data); // Find the blog post with the matching id - const matchingBlog = data.items.find(blog => blog?.meta.slug === params.blogid); + const matchingBlog = data.items.find(blog => blog?.blog_slug === params.blogid); console.log("matchingBlog", data.items[0]); // Update the state with the matching blog data setBlogData(matchingBlog); @@ -51,7 +51,7 @@ const BlogId = ({ params }) => { return ( <> -
{description.slice(0, 150) + "... see more"}
Loading...
+ )} +({project.project_description.slice(0, 150) + "... see more"})
- - -({project.project_description.slice(0, 150) + "... see more"})
+