[Editor] Avoid an error when getting the editors telemetry data
This commit is contained in:
parent
e3a5f61234
commit
678aec9890
@ -226,11 +226,13 @@ class AnnotationStorage {
|
|||||||
let numberOfDeletedComments = 0;
|
let numberOfDeletedComments = 0;
|
||||||
for (const value of this.#storage.values()) {
|
for (const value of this.#storage.values()) {
|
||||||
if (!(value instanceof AnnotationEditor)) {
|
if (!(value instanceof AnnotationEditor)) {
|
||||||
|
if (value.popup) {
|
||||||
if (value.popup.deleted) {
|
if (value.popup.deleted) {
|
||||||
numberOfDeletedComments += 1;
|
numberOfDeletedComments += 1;
|
||||||
} else if (value.popup) {
|
} else {
|
||||||
numberOfEditedComments += 1;
|
numberOfEditedComments += 1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (value.isCommentDeleted) {
|
if (value.isCommentDeleted) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user