Skip to content

Commit

Permalink
annotation: fixed incorrect function call
Browse files Browse the repository at this point in the history
problem:
incorrect function call was sending additional ShowResolvedAnnotations requests
it caused to disregard the ShowResolvedAnnotations stat on reload unless document was saved

Signed-off-by: Pranam Lashkari <[email protected]>
Change-Id: I3ab0f8b804428ea813582c04c85540363e51e210
  • Loading branch information
lpranam authored and caolanm committed Sep 3, 2024
1 parent 1cbbe58 commit 601f7b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion browser/src/canvas/sections/CommentListSection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2141,7 +2141,7 @@ export class CommentSection extends app.definitions.canvasSectionObject {
}

var showResolved = this.map.stateChangeHandler.getItemValue('ShowResolvedAnnotations');
app.map.showResolvedComments(showResolved === true || showResolved === 'true');
this.setViewResolved(showResolved === true || showResolved === 'true');

if (this.sectionProperties.docLayer._docType === 'spreadsheet')
this.hideAllComments(); // Apply drawing orders.
Expand Down

0 comments on commit 601f7b2

Please sign in to comment.