mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 08:58:09 +08:00
fix: remove contradictory optional chain in chat/utils.ts (#33841)
Co-authored-by: yoloni <yoloni@tencent.com>
This commit is contained in:
@ -158,7 +158,7 @@ function buildChatItemTree(allMessages: IChatItem[]): ChatItemInTree[] {
|
||||
rootNodes.push(questionNode)
|
||||
}
|
||||
else {
|
||||
map[parentMessageId]?.children!.push(questionNode)
|
||||
map[parentMessageId].children!.push(questionNode)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user