Merge pull request #20318 from calixteman/fix_editorStats

[Editor] Avoid an error when getting the editors telemetry data
This commit is contained in:
calixteman 2025-10-01 00:40:35 -11:00 committed by GitHub
commit cd66ecf3d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -226,10 +226,12 @@ class AnnotationStorage {
let numberOfDeletedComments = 0;
for (const value of this.#storage.values()) {
if (!(value instanceof AnnotationEditor)) {
if (value.popup.deleted) {
numberOfDeletedComments += 1;
} else if (value.popup) {
numberOfEditedComments += 1;
if (value.popup) {
if (value.popup.deleted) {
numberOfDeletedComments += 1;
} else {
numberOfEditedComments += 1;
}
}
continue;
}