fix: undefined metadata content error

This commit is contained in:
DIYgod 2023-10-18 14:55:40 +08:00
parent adacd8ab8b
commit 9a495cdaaf
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

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(