mirror of https://github.com/langgenius/dify.git
fix: remove contradictory optional chain in chat/utils.ts (#33841)
Co-authored-by: yoloni <yoloni@tencent.com>
This commit is contained in:
parent
eae821d645
commit
110b8c925e
|
|
@ -158,7 +158,7 @@ function buildChatItemTree(allMessages: IChatItem[]): ChatItemInTree[] {
|
|||
rootNodes.push(questionNode)
|
||||
}
|
||||
else {
|
||||
map[parentMessageId]?.children!.push(questionNode)
|
||||
map[parentMessageId].children!.push(questionNode)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue