diff --git a/services/web/frontend/js/features/source-editor/extensions/ranges.ts b/services/web/frontend/js/features/source-editor/extensions/ranges.ts index d649216243..c6b10abd19 100644 --- a/services/web/frontend/js/features/source-editor/extensions/ranges.ts +++ b/services/web/frontend/js/features/source-editor/extensions/ranges.ts @@ -212,7 +212,9 @@ export const ranges = () => [ const unresolvedComments = rangesData.threads ? comments.filter( comment => - comment.op.t && !rangesData.threads[comment.op.t].resolved + comment.op.t && + rangesData.threads[comment.op.t] && + !rangesData.threads[comment.op.t].resolved ) : []