diff options
-rw-r--r-- | browser/src/canvas/sections/CommentListSection.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/browser/src/canvas/sections/CommentListSection.ts b/browser/src/canvas/sections/CommentListSection.ts index b7fd80efd4..0ca510ba61 100644 --- a/browser/src/canvas/sections/CommentListSection.ts +++ b/browser/src/canvas/sections/CommentListSection.ts @@ -2114,7 +2114,7 @@ export class CommentSection extends app.definitions.canvasSectionObject { public onCommentsDataUpdate(): void { for (var i: number = this.sectionProperties.commentList.length -1; i > -1; i--) { var comment = this.sectionProperties.commentList[i]; - if (!comment.valid) { + if (!comment.valid && comment.sectionProperties.data.id !== 'new') { comment.sectionProperties.commentListSection.removeItem(comment.sectionProperties.data.id); } comment.onCommentDataUpdate(); |