fix: Correct logic error in tool input assignment for ChatflowTool (#3903)
The previous code incorrectly assigned `toolInput` to an empty string when `customInput` was non-empty. Corrected the logic to ensure that `toolInput` is assigned `customInput` when `useQuestionFromChat` is false and `customInput` is non-empty.
This commit is contained in:
parent
1baa4f8e4f
commit
50a7339299
|
|
@ -164,7 +164,7 @@ class ChatflowTool_Tools implements INode {
|
||||||
let toolInput = ''
|
let toolInput = ''
|
||||||
if (useQuestionFromChat) {
|
if (useQuestionFromChat) {
|
||||||
toolInput = input
|
toolInput = input
|
||||||
} else if (!customInput) {
|
} else if (customInput) {
|
||||||
toolInput = customInput
|
toolInput = customInput
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue