diff --git a/apps/app/components/pages/create-update-block-inline.tsx b/apps/app/components/pages/create-update-block-inline.tsx index 336c04edd..528c83f9e 100644 --- a/apps/app/components/pages/create-update-block-inline.tsx +++ b/apps/app/components/pages/create-update-block-inline.tsx @@ -365,10 +365,15 @@ export const CreateUpdateBlockInline: React.FC = ({ content={watch("description_html")} htmlContent={watch("description_html")} onResponse={(response) => { - if (data && handleAiAssistance) handleAiAssistance(response); - else { + if (data && handleAiAssistance) { + handleAiAssistance(response); + editorRef.current?.setEditorValue( + `${watch("description_html")}

${response}

` ?? "" + ); + } else { setValue("description", {}); setValue("description_html", `${watch("description_html")}

${response}

`); + editorRef.current?.setEditorValue(watch("description_html") ?? ""); } }}