fix: undefined metadata content error

This commit is contained in:
DIYgod
2023-10-18 14:55:40 +08:00
parent adacd8ab8b
commit 9a495cdaaf
+2 -2
View File
@@ -74,7 +74,7 @@ const Card = ({
>
<PostCover
uniqueKey={`${post.characterId}-${post.noteId}`}
images={post.metadata?.content.images}
images={post.metadata?.content?.images}
title={post.metadata?.content?.title}
className={isShort ? "rounded-b-2xl aspect-square border-b-0" : ""}
/>
@@ -99,7 +99,7 @@ const Card = ({
{comment}
</div>
)}
{!!post.metadata?.content.images?.length &&
{!!post.metadata?.content?.images?.length &&
post.metadata?.content?.title && (
<h2
className={cn(