fix: settings editor state according to ai response (#1032)
* fix: placeholder and ai response not getting appended in textarea * fix: settings editor state according to ai response
This commit is contained in:
parent
34f4580b94
commit
a0553722c9
1 changed files with 1 additions and 1 deletions
|
|
@ -167,6 +167,7 @@ export const IssueForm: FC<IssueFormProps> = ({
|
|||
|
||||
setValue("description", {});
|
||||
setValue("description_html", `${watch("description_html")}<p>${response}</p>`);
|
||||
editorRef.current?.setEditorValue(`${watch("description_html")}`);
|
||||
};
|
||||
|
||||
const handleAutoGenerateDescription = async () => {
|
||||
|
|
@ -382,7 +383,6 @@ export const IssueForm: FC<IssueFormProps> = ({
|
|||
htmlContent={watch("description_html")}
|
||||
onResponse={(response) => {
|
||||
handleAiAssistance(response);
|
||||
editorRef.current?.setEditorValue(`${watch("description_html")}`);
|
||||
}}
|
||||
projectId={projectId}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue