diff --git a/app/scenes/Document/components/CommentThread.tsx b/app/scenes/Document/components/CommentThread.tsx index 8d7830d27..21f3775b7 100644 --- a/app/scenes/Document/components/CommentThread.tsx +++ b/app/scenes/Document/components/CommentThread.tsx @@ -68,7 +68,9 @@ function CommentThread({ comment: thread, }); - const commentsInThread = comments.inThread(thread.id); + const commentsInThread = comments + .inThread(thread.id) + .filter((comment) => !comment.isNew); useOnClickOutside(topRef, (event) => { if ( @@ -180,7 +182,7 @@ function CommentThread({ }, }} > - {focused && ( + {(focused || commentsInThread.length === 0) && ( { return filter( this.orderedData, (comment) => - comment.parentCommentId === threadId || - (comment.id === threadId && !comment.isNew) + comment.parentCommentId === threadId || comment.id === threadId ); }