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: front end error when same tool is called twice at once (#5068)

Charles Zhoueaca892c4e42
diff --git a/web/app/components/app/chat/thought/index.tsx b/web/app/components/app/chat/thought/index.tsx
index 462cf87fbc2..e87d484ed4a 100644
--- a/web/app/components/app/chat/thought/index.tsx
+++ b/web/app/components/app/chat/thought/index.tsx
@@ -47,7 +47,7 @@ const Thought: FC<IThoughtProps> = ({
const toolThoughtList = toolNames.map((toolName, index) => {
return {
name: toolName,
- label: thought.tool_labels?.[toolName][language] ?? toolName,
+ label: thought.tool_labels?.toolName?.language ?? toolName,
input: getValue(thought.tool_input, isValueArray, index),
output: getValue(thought.observation, isValueArray, index),
isFinished,