Skip to content

Commit

Permalink
fix: Correct logic error in tool input assignment for ChatflowTool (#…
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
kirisame-wang authored Jan 22, 2025
1 parent 1baa4f8 commit 50a7339
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ class ChatflowTool_Tools implements INode {
let toolInput = ''
if (useQuestionFromChat) {
toolInput = input
} else if (!customInput) {
} else if (customInput) {
toolInput = customInput
}

Expand Down

0 comments on commit 50a7339

Please sign in to comment.