We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2018114 commit 7b3f206Copy full SHA for 7b3f206
web/core/components/issues/issue-detail/issue-activity/comments/comment-card.tsx
@@ -67,11 +67,11 @@ export const IssueCommentCard: FC<TIssueCommentCard> = observer((props) => {
67
defaultValues: { comment_html: comment?.comment_html },
68
});
69
70
- const onEnter = (formData: Partial<TIssueComment>) => {
+ const onEnter = async (formData: Partial<TIssueComment>) => {
71
if (isSubmitting || !comment) return;
72
setIsEditing(false);
73
74
- activityOperations.updateComment(comment.id, formData);
+ await activityOperations.updateComment(comment.id, formData);
75
76
editorRef.current?.setEditorValue(formData?.comment_html ?? "<p></p>");
77
showEditorRef.current?.setEditorValue(formData?.comment_html ?? "<p></p>");
0 commit comments