The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: allow for no authors
Jonathan Summers-Muir9dd1aad3ae66
diff --git a/www/components/Blog/BlogListItem.tsx b/www/components/Blog/BlogListItem.tsxindex e5e2737af03..dfb775284fa 100644--- a/www/components/Blog/BlogListItem.tsx+++ b/www/components/Blog/BlogListItem.tsx@@ -9,17 +9,19 @@ interface Props {const BlogListItem = ({ post }: Props) => {// @ts-ignore- const authorArray = post.author.split(',')+ const authorArray = post.author && post.author.split(',')const author = []- for (let i = 0; i < authorArray.length; i++) {- author.push(- // @ts-ignore- authors.find((authors: string) => {+ if (post.author) {+ for (let i = 0; i < authorArray.length; i++) {+ author.push(// @ts-ignore- return authors.author_id === authorArray[i]- })- )+ authors.find((authors: string) => {+ // @ts-ignore+ return authors.author_id === authorArray[i]+ })+ )+ }}return (