From a0553722c9c40091a34933c5c1944193e16c8c14 Mon Sep 17 00:00:00 2001 From: Dakshesh Jain <65905942+dakshesh14@users.noreply.github.com> Date: Thu, 11 May 2023 17:02:20 +0530 Subject: [PATCH] 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 --- apps/app/components/issues/form.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app/components/issues/form.tsx b/apps/app/components/issues/form.tsx index ddda21ef4..8d9c03463 100644 --- a/apps/app/components/issues/form.tsx +++ b/apps/app/components/issues/form.tsx @@ -167,6 +167,7 @@ export const IssueForm: FC = ({ setValue("description", {}); setValue("description_html", `${watch("description_html")}

${response}

`); + editorRef.current?.setEditorValue(`${watch("description_html")}`); }; const handleAutoGenerateDescription = async () => { @@ -382,7 +383,6 @@ export const IssueForm: FC = ({ htmlContent={watch("description_html")} onResponse={(response) => { handleAiAssistance(response); - editorRef.current?.setEditorValue(`${watch("description_html")}`); }} projectId={projectId} />