From 037529f24394e923c36ce96f235f1a38bf4f6ea2 Mon Sep 17 00:00:00 2001 From: David <33458145+davidmcpowell@users.noreply.github.com> Date: Tue, 8 Oct 2024 13:23:40 +0100 Subject: [PATCH] Merge pull request #20886 from overleaf/dp-overview-file-counts Check that thread has messages in overview comment count GitOrigin-RevId: 8499f837a016256c5ca615172b5c53a7f2e7c6b5 --- .../review-panel-new/components/review-panel-overview-file.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/frontend/js/features/review-panel-new/components/review-panel-overview-file.tsx b/services/web/frontend/js/features/review-panel-new/components/review-panel-overview-file.tsx index 78c32570cb..d20b6e7f7d 100644 --- a/services/web/frontend/js/features/review-panel-new/components/review-panel-overview-file.tsx +++ b/services/web/frontend/js/features/review-panel-new/components/review-panel-overview-file.tsx @@ -48,7 +48,7 @@ export const ReviewPanelOverviewFile: FC<{ const unresolvedComments = useMemo(() => { return ranges.comments.filter(comment => { const thread = threads?.[comment.op.t] - return thread && !thread.resolved + return thread && thread.messages.length > 0 && !thread.resolved }) }, [ranges.comments, threads])