Procházet zdrojové kódy

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)
tags/v0.18.0
balibabu před 7 měsíci
rodič
revize
d17ec26c56
Žádný účet není propojen s e-mailovou adresou tvůrce revize
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2
    2
      web/src/pages/chat/hooks.ts

+ 2
- 2
web/src/pages/chat/hooks.ts Zobrazit soubor

@@ -343,8 +343,8 @@ export const useHandleMessageInputChange = () => {

const handleInputChange: ChangeEventHandler<HTMLTextAreaElement> = (e) => {
const value = e.target.value;
const nextValue = value.replaceAll('\\n', '\n').replaceAll('\\t', '\t');
setValue(nextValue);
// const nextValue = value.replaceAll('\\n', '\n').replaceAll('\\t', '\t');
setValue(value);
};

return {

Načítá se…
Zrušit
Uložit