Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix(comment): #1007, fix comment original_text not update when edit

haitao(lj)7d1bfdb85fac
diff --git a/ui/src/components/Comment/index.tsx b/ui/src/components/Comment/index.tsx
index 8ab2980f..e7fd3bff 100644
--- a/ui/src/components/Comment/index.tsx
+++ b/ui/src/components/Comment/index.tsx
@@ -112,6 +112,7 @@ const Comment = ({ objectId, mode }) => {
if (comment.comment_id === item.comment_id) {
comment.showEdit = false;
comment.parsed_text = html;
+ comment.original_text = item.value;
}
return comment;
}),