Skip to content

Commit

Permalink
Add guard for applyDrawingOrders function.
Browse files Browse the repository at this point in the history
It's required only for spreadsheets.

Signed-off-by: Gökay Şatır <[email protected]>
Change-Id: Iae3694cca16cb51d4e3e9b20f3a337fd2e0a4c12
  • Loading branch information
gokaysatir authored and lpranam committed Oct 16, 2023
1 parent 5680f3d commit 84cc6dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion browser/src/layer/tile/CommentListSection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,9 @@ export class CommentSection extends CanvasSectionObject {
}
}
}
this.containerObject.applyDrawingOrders();

if (this.sectionProperties.docLayer._docType === 'spreadsheet')
this.containerObject.applyDrawingOrders();
}

// Mobile.
Expand Down

0 comments on commit 84cc6dc

Please sign in to comment.