Skip to content

Commit

Permalink
For Bug 70218
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliaRadzhabova committed Oct 3, 2024
1 parent 09bbbfa commit 6b03d0f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions apps/spreadsheeteditor/main/app/controller/DocumentHolder.js
Original file line number Diff line number Diff line change
Expand Up @@ -1160,12 +1160,8 @@ define([
cellinfo = this.api.asc_getCellInfo();
if (controller) {
var comments = cellinfo.asc_getComments();
if (comments) {
if (comments.length) {
controller.onEditComments(comments);
} else if (this.permissions.canCoAuthoring) {
controller.addDummyComment();
}
if (comments && !comments.length && this.permissions.canCoAuthoring) {
controller.addDummyComment();
}
}
}
Expand Down

0 comments on commit 6b03d0f

Please sign in to comment.