fix: not return annotation author error happens (#1793)
This commit is contained in:
parent
43741ad5d1
commit
c3275dfd36
4 changed files with 13 additions and 10 deletions
|
|
@ -114,7 +114,8 @@ const HeaderOptions: FC<Props> = ({
|
|||
)
|
||||
}
|
||||
// !w-[208px]
|
||||
className={'!w-[131px] h-fit !z-20'}
|
||||
className={'!w-[135px] h-fit !z-20'}
|
||||
popupClassName='!w-full'
|
||||
manualClose
|
||||
/>
|
||||
{showAddModal && (
|
||||
|
|
|
|||
|
|
@ -247,7 +247,7 @@ const Answer: FC<IAnswerProps> = ({
|
|||
<Markdown className='line-through !text-gray-400' content={content} />
|
||||
</div>
|
||||
<EditTitle title={t('appAnnotation.editBy', {
|
||||
author: annotation?.logAnnotation.account.name,
|
||||
author: annotation?.logAnnotation.account?.name,
|
||||
})} />
|
||||
</div>
|
||||
)}
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue