mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-29 07:01:04 +03:00
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:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user