Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix: BlogListItem props

Isaiah Hamiltonccefa95d7705
diff --git a/www/components/Blog/BlogListItem.tsx b/www/components/Blog/BlogListItem.tsx
index bf1ad4b84f7..e5e2737af03 100644
--- a/www/components/Blog/BlogListItem.tsx
+++ b/www/components/Blog/BlogListItem.tsx
@@ -9,7 +9,7 @@ interface Props {
const BlogListItem = ({ post }: Props) => {
// @ts-ignore
- const authorArray = blog.author.split(',')
+ const authorArray = post.author.split(',')
const author = []
for (let i = 0; i < authorArray.length; i++) {
diff --git a/www/pages/blog/[year]/[month]/[day]/[slug].tsx b/www/pages/blog/[year]/[month]/[day]/[slug].tsx
index 158e4587084..bacfd356040 100644
--- a/www/pages/blog/[year]/[month]/[day]/[slug].tsx
+++ b/www/pages/blog/[year]/[month]/[day]/[slug].tsx
@@ -93,8 +93,8 @@ function BlogPostPage(props: any) {
const author = []
for (let i = 0; i < authorArray.length; i++) {
- // @ts-ignore
author.push(
+ // @ts-ignore
authors.find((authors: string) => {
// @ts-ignore
return authors.author_id === authorArray[i]