Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

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

enci110b8c925e52
diff --git a/web/app/components/base/chat/utils.ts b/web/app/components/base/chat/utils.ts
index b47fec1d0ad..5881f565a49 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)
}
}
}