Merge pull request #26814 from overleaf/mj-review-panel-comment-collapse

[web] Fix review panel check for comments in active document

GitOrigin-RevId: fc0c35bc1d2f253c133dec5dcea7f81f68d723a9
This commit is contained in:
Mathias Jakobsen
2025-07-07 12:12:35 +01:00
committed by Copybot
parent 56232b48a7
commit b89951cf5d
2 changed files with 185 additions and 15 deletions

View File

@@ -15,8 +15,9 @@ export const hasActiveRange = (
return true
}
for (const thread of Object.values(threads)) {
if (!thread.resolved) {
for (const comment of ranges.comments) {
const thread = threads[comment.op.t]
if (thread && !thread.resolved) {
return true
}
}