mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +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:
parent
34f4580b94
commit
a0553722c9
@ -167,6 +167,7 @@ export const IssueForm: FC<IssueFormProps> = ({
|
|||||||
|
|
||||||
setValue("description", {});
|
setValue("description", {});
|
||||||
setValue("description_html", `${watch("description_html")}<p>${response}</p>`);
|
setValue("description_html", `${watch("description_html")}<p>${response}</p>`);
|
||||||
|
editorRef.current?.setEditorValue(`${watch("description_html")}`);
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleAutoGenerateDescription = async () => {
|
const handleAutoGenerateDescription = async () => {
|
||||||
@ -382,7 +383,6 @@ export const IssueForm: FC<IssueFormProps> = ({
|
|||||||
htmlContent={watch("description_html")}
|
htmlContent={watch("description_html")}
|
||||||
onResponse={(response) => {
|
onResponse={(response) => {
|
||||||
handleAiAssistance(response);
|
handleAiAssistance(response);
|
||||||
editorRef.current?.setEditorValue(`${watch("description_html")}`);
|
|
||||||
}}
|
}}
|
||||||
projectId={projectId}
|
projectId={projectId}
|
||||||
/>
|
/>
|
||||||
|
Loading…
Reference in New Issue
Block a user