From 110b8c925e5265f48f8c74b937fa4204ca321c6e Mon Sep 17 00:00:00 2001 From: enci Date: Mon, 23 Mar 2026 10:58:10 +0800 Subject: [PATCH] fix: remove contradictory optional chain in chat/utils.ts (#33841) Co-authored-by: yoloni --- web/app/components/base/chat/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/components/base/chat/utils.ts b/web/app/components/base/chat/utils.ts index b47fec1d0a..5881f565a4 100644 --- a/web/app/components/base/chat/utils.ts +++ b/web/app/components/base/chat/utils.ts @@ -158,7 +158,7 @@ function buildChatItemTree(allMessages: IChatItem[]): ChatItemInTree[] { rootNodes.push(questionNode) } else { - map[parentMessageId]?.children!.push(questionNode) + map[parentMessageId].children!.push(questionNode) } } }