mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 09:58:04 +08:00
fix: front end error when same tool is called twice at once (#5068)
This commit is contained in:
@ -47,7 +47,7 @@ const Thought: FC<IThoughtProps> = ({
|
|||||||
const toolThoughtList = toolNames.map((toolName, index) => {
|
const toolThoughtList = toolNames.map((toolName, index) => {
|
||||||
return {
|
return {
|
||||||
name: toolName,
|
name: toolName,
|
||||||
label: thought.tool_labels?.[toolName][language] ?? toolName,
|
label: thought.tool_labels?.toolName?.language ?? toolName,
|
||||||
input: getValue(thought.tool_input, isValueArray, index),
|
input: getValue(thought.tool_input, isValueArray, index),
|
||||||
output: getValue(thought.observation, isValueArray, index),
|
output: getValue(thought.observation, isValueArray, index),
|
||||||
isFinished,
|
isFinished,
|
||||||
|
|||||||
Reference in New Issue
Block a user