mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 23:01:09 +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 = ''
|
||||
if (useQuestionFromChat) {
|
||||
toolInput = input
|
||||
} else if (!customInput) {
|
||||
} else if (customInput) {
|
||||
toolInput = customInput
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user