From 9a495cdaaf9eb1bfa4757730379ac7ab91a0f358 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Wed, 18 Oct 2023 14:55:40 +0800 Subject: [PATCH] fix: undefined metadata content error --- src/components/common/PostCard.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/common/PostCard.tsx b/src/components/common/PostCard.tsx index d8f2e2d2..99ecfc6f 100644 --- a/src/components/common/PostCard.tsx +++ b/src/components/common/PostCard.tsx @@ -74,7 +74,7 @@ const Card = ({ > @@ -99,7 +99,7 @@ const Card = ({ {comment} )} - {!!post.metadata?.content.images?.length && + {!!post.metadata?.content?.images?.length && post.metadata?.content?.title && (