[Editor] Avoid an error when getting the editors telemetry data

This commit is contained in:
Calixte Denizet 2025-09-29 16:41:15 +02:00
parent e3a5f61234
commit 678aec9890

View File

@ -226,10 +226,12 @@ 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.deleted) { if (value.popup) {
numberOfDeletedComments += 1; if (value.popup.deleted) {
} else if (value.popup) { numberOfDeletedComments += 1;
numberOfEditedComments += 1; } else {
numberOfEditedComments += 1;
}
} }
continue; continue;
} }