diff --git a/browser/src/layer/tile/CommentListSection.ts b/browser/src/layer/tile/CommentListSection.ts index c7136ea17..c08a6577b 100644 --- a/browser/src/layer/tile/CommentListSection.ts +++ b/browser/src/layer/tile/CommentListSection.ts @@ -1757,7 +1757,7 @@ class CommentSection { private clearChanges() { this.containerObject.pauseDrawing(); for (var i: number = this.sectionProperties.commentList.length -1; i > -1; i--) { - if (this.sectionProperties.commentList[i].trackchange) { + if (this.sectionProperties.commentList[i].sectionProperties.data.trackchange) { this.containerObject.removeSection(this.sectionProperties.commentList[i].name); this.sectionProperties.commentList.splice(i, 1); } @@ -1773,7 +1773,7 @@ class CommentSection { private clearList () { this.containerObject.pauseDrawing(); for (var i: number = this.sectionProperties.commentList.length -1; i > -1; i--) { - if (!this.sectionProperties.commentList[i].trackchange) { + if (!this.sectionProperties.commentList[i].sectionProperties.data.trackchange) { this.containerObject.removeSection(this.sectionProperties.commentList[i].name); this.sectionProperties.commentList.splice(i, 1); } diff --git a/browser/src/layer/tile/WriterTileLayer.js b/browser/src/layer/tile/WriterTileLayer.js index 683a356d1..3a9501f8d 100644 --- a/browser/src/layer/tile/WriterTileLayer.js +++ b/browser/src/layer/tile/WriterTileLayer.js @@ -40,7 +40,6 @@ L.WriterTileLayer = L.CanvasTileLayer.extend({ comment.id = comment.id.toString(); comment.parent = comment.parent.toString(); }); - app.sectionContainer.getSectionWithName(L.CSections.CommentList.name).clearList(); app.sectionContainer.getSectionWithName(L.CSections.CommentList.name).importComments(values.comments); } else if (values.redlines && values.redlines.length > 0) {