From eaca892c4e42f55a155cfbba4e906e484fc9d6f1 Mon Sep 17 00:00:00 2001 From: Charles Zhou Date: Thu, 13 Jun 2024 04:16:59 -0500 Subject: [PATCH] fix: front end error when same tool is called twice at once (#5068) --- web/app/components/app/chat/thought/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/components/app/chat/thought/index.tsx b/web/app/components/app/chat/thought/index.tsx index 462cf87fbc..e87d484ed4 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 = ({ 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,