From ac197a0a57a3a55455ecb3ae967d7b58f02966fa Mon Sep 17 00:00:00 2001 From: David <33458145+davidmcpowell@users.noreply.github.com> Date: Thu, 19 Sep 2024 11:07:43 +0100 Subject: [PATCH] Merge pull request #20494 from overleaf/dp-zero-message-thread Don't show comment threads with zero messages GitOrigin-RevId: e9efdf4fc1119b8fdafdd8a93c7cd9caed91a276 --- .../review-panel-new/components/review-panel-comment.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/frontend/js/features/review-panel-new/components/review-panel-comment.tsx b/services/web/frontend/js/features/review-panel-new/components/review-panel-comment.tsx index 316abd25b5..1483999c79 100644 --- a/services/web/frontend/js/features/review-panel-new/components/review-panel-comment.tsx +++ b/services/web/frontend/js/features/review-panel-new/components/review-panel-comment.tsx @@ -13,7 +13,7 @@ export const ReviewPanelComment = memo<{ const threads = useThreadsContext() const thread = threads?.[comment.op.t] - if (!thread || thread.resolved) { + if (!thread || thread.resolved || thread.messages.length === 0) { return null }