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:
Dakshesh Jain 2023-05-11 17:02:20 +05:30 committed by GitHub
parent 34f4580b94
commit a0553722c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}
/>