From 563ef7a7e7efb7df88c8cf1850d8eff76d27087d Mon Sep 17 00:00:00 2001 From: Uday Sagar Date: Thu, 5 Dec 2024 08:25:45 +0530 Subject: [PATCH] suggestions --- src/components/Common/DiscussionNotesEditor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Common/DiscussionNotesEditor.tsx b/src/components/Common/DiscussionNotesEditor.tsx index f9bd9c8d627..17444966af5 100644 --- a/src/components/Common/DiscussionNotesEditor.tsx +++ b/src/components/Common/DiscussionNotesEditor.tsx @@ -221,7 +221,7 @@ const DiscussionNotesEditor: React.FC = ({ await fileUpload.handleFileUpload(id); onRefetch?.(); fileUpload.clearFiles(); - editorRef.current.innerHTML = ""; + setText(""); setIsPreviewMode(false); }} className="max-w-12"