mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-16 14:55:58 +08:00
Fix: In the Agent's workflow, the input content cannot be wrapped, and \n will not work, otherwise an error will be reported #6241 (#6284)
### What problem does this PR solve? Fix: In the Agent's workflow, the input content cannot be wrapped, and \n will not work, otherwise an error will be reported #6241 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
4236d81cfc
commit
d17ec26c56
@ -343,8 +343,8 @@ export const useHandleMessageInputChange = () => {
|
|||||||
|
|
||||||
const handleInputChange: ChangeEventHandler<HTMLTextAreaElement> = (e) => {
|
const handleInputChange: ChangeEventHandler<HTMLTextAreaElement> = (e) => {
|
||||||
const value = e.target.value;
|
const value = e.target.value;
|
||||||
const nextValue = value.replaceAll('\\n', '\n').replaceAll('\\t', '\t');
|
// const nextValue = value.replaceAll('\\n', '\n').replaceAll('\\t', '\t');
|
||||||
setValue(nextValue);
|
setValue(value);
|
||||||
};
|
};
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user