fix: not return annotation author error happens (#1793)

This commit is contained in:
Joel
2023-12-19 17:22:54 +08:00
committed by GitHub
parent 43741ad5d1
commit c3275dfd36
4 changed files with 13 additions and 10 deletions

View File

@@ -100,7 +100,7 @@ const getFormattedChatList = (messages: ChatMessage[]) => {
if (item.annotation_hit_history) {
return {
id: item.annotation_hit_history.annotation_id,
authorName: item.annotation_hit_history.annotation_create_account.name,
authorName: item.annotation_hit_history.annotation_create_account?.name || 'N/A',
created_at: item.annotation_hit_history.created_at,
}
}