Skip to content

Commit cd66ecf

Browse files
authored
Merge pull request #20318 from calixteman/fix_editorStats
[Editor] Avoid an error when getting the editors telemetry data
2 parents d18289b + 678aec9 commit cd66ecf

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/display/annotation_storage.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,10 +226,12 @@ class AnnotationStorage {
226226
let numberOfDeletedComments = 0;
227227
for (const value of this.#storage.values()) {
228228
if (!(value instanceof AnnotationEditor)) {
229-
if (value.popup.deleted) {
230-
numberOfDeletedComments += 1;
231-
} else if (value.popup) {
232-
numberOfEditedComments += 1;
229+
if (value.popup) {
230+
if (value.popup.deleted) {
231+
numberOfDeletedComments += 1;
232+
} else {
233+
numberOfEditedComments += 1;
234+
}
233235
}
234236
continue;
235237
}

0 commit comments

Comments
 (0)