mirror of
https://github.com/makeplane/plane
synced 2025-08-07 19:59:33 +00:00
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:
@@ -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}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user