This commit is contained in:
Ren Amamiya
2023-07-17 07:51:00 +07:00
parent 9a09a04a5d
commit 4f41022b30
9 changed files with 44 additions and 33 deletions

View File

@@ -65,7 +65,7 @@ export const MentionNote = memo(function MentionNote({ id }: { id: string }) {
},
}}
>
{data.content.parsed.length > 200
{data?.content?.parsed?.length > 200
? data.content.parsed.substring(0, 200) + '...'
: data.content.parsed}
</ReactMarkdown>