Skip to content

Commit

Permalink
annotation: make sure comment list is fetched correctly
Browse files Browse the repository at this point in the history
problem:
this caused problem in autosaved comments,
when comment list is empty autosaved comments may be closed when focus is lost

partial fix: #7421
Signed-off-by: Pranam Lashkari <[email protected]>
Change-Id: I1fc2d087828ce44495001f97b5323dffb8adb2ef
  • Loading branch information
lpranam committed Oct 17, 2023
1 parent 11a0e78 commit a373b6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion browser/src/layer/tile/CommentSection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,7 @@ export class Comment extends CanvasSectionObject {
}

public isAnyEdit (): boolean {
var commentList = this.sectionProperties.commentList;
var commentList = app.sectionContainer.getSectionWithName(L.CSections.CommentList.name).sectionProperties.commentList;
for (var i in commentList) {
var modifyNode = commentList[i].sectionProperties.nodeModify;
var replyNode = commentList[i].sectionProperties.nodeReply;
Expand Down

0 comments on commit a373b6e

Please sign in to comment.