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:
Yi-Cheng Wang 2025-01-23 02:22:24 +08:00 committed by GitHub
parent 1baa4f8e4f
commit 50a7339299
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ class ChatflowTool_Tools implements INode {
let toolInput = ''
if (useQuestionFromChat) {
toolInput = input
} else if (!customInput) {
} else if (customInput) {
toolInput = customInput
}