π₯π₯π₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.
TypeScript boardsbug-trackerdjangodockerganttissue-trackerjirajira-alternativekanbanlinearpostgresqlproduct-managementproject-managementproject-planningpythonreactredistypesciptvitework-management
fix: prevented multiple api call while updating comment (#6352)
Vamsi Krishna7b3f206f570a
diff --git a/web/core/components/issues/issue-detail/issue-activity/comments/comment-card.tsx b/web/core/components/issues/issue-detail/issue-activity/comments/comment-card.tsxindex 79eac92a6b..baae682881 100644--- a/web/core/components/issues/issue-detail/issue-activity/comments/comment-card.tsx+++ b/web/core/components/issues/issue-detail/issue-activity/comments/comment-card.tsx@@ -67,11 +67,11 @@ export const IssueCommentCard: FC<TIssueCommentCard> = observer((props) => {defaultValues: { comment_html: comment?.comment_html },});- const onEnter = (formData: Partial<TIssueComment>) => {+ const onEnter = async (formData: Partial<TIssueComment>) => {if (isSubmitting || !comment) return;setIsEditing(false);- activityOperations.updateComment(comment.id, formData);+ await activityOperations.updateComment(comment.id, formData);editorRef.current?.setEditorValue(formData?.comment_html ?? "<p></p>");showEditorRef.current?.setEditorValue(formData?.comment_html ?? "<p></p>");