提交 99ce2533 编写于 作者: I Ilya Biryukov

Fix comment thread update handler

When comment thread update comes, the code would go
through deleted and remaining comments. The bug was that
if there was a deleted comment, the code would delete all the comments
in the thread past the deleted comment as well,
and then would erroneousely consider remaining comments as new ones,
basically duplicating them in UI.

Fix for #64042
上级 cfc11ee3
......@@ -236,7 +236,7 @@ export class ReviewZoneWidget extends ZoneWidget {
// del removed elements
for (let i = commentElementsToDel.length - 1; i >= 0; i--) {
this._commentElements.splice(commentElementsToDelIndex[i]);
this._commentElements.splice(commentElementsToDelIndex[i], 1);
this._commentsElement.removeChild(commentElementsToDel[i].domNode);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册