fix: remove contradictory optional chain in chat/utils.ts (#33841)

Co-authored-by: yoloni <yoloni@tencent.com>
This commit is contained in:
enci 2026-03-23 10:58:10 +08:00 committed by GitHub
parent eae821d645
commit 110b8c925e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ function buildChatItemTree(allMessages: IChatItem[]): ChatItemInTree[] {
rootNodes.push(questionNode)
}
else {
map[parentMessageId]?.children!.push(questionNode)
map[parentMessageId].children!.push(questionNode)
}
}
}