mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #20886 from overleaf/dp-overview-file-counts
Check that thread has messages in overview comment count GitOrigin-RevId: 8499f837a016256c5ca615172b5c53a7f2e7c6b5
This commit is contained in:
parent
d9211998de
commit
037529f243
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ export const ReviewPanelOverviewFile: FC<{
|
||||||
const unresolvedComments = useMemo(() => {
|
const unresolvedComments = useMemo(() => {
|
||||||
return ranges.comments.filter(comment => {
|
return ranges.comments.filter(comment => {
|
||||||
const thread = threads?.[comment.op.t]
|
const thread = threads?.[comment.op.t]
|
||||||
return thread && !thread.resolved
|
return thread && thread.messages.length > 0 && !thread.resolved
|
||||||
})
|
})
|
||||||
}, [ranges.comments, threads])
|
}, [ranges.comments, threads])
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue