fix: Draft comment on text gets into a strange state when unfocused

This commit is contained in:
Tom Moor
2023-04-04 23:06:07 -04:00
parent 1b11cb5aca
commit 3ca86bcc0c
2 changed files with 5 additions and 4 deletions

View File

@@ -38,8 +38,7 @@ export default class CommentsStore extends BaseStore<Comment> {
return filter(
this.orderedData,
(comment) =>
comment.parentCommentId === threadId ||
(comment.id === threadId && !comment.isNew)
comment.parentCommentId === threadId || comment.id === threadId
);
}