diff --git a/src/display/editor/highlight.js b/src/display/editor/highlight.js index 8c8f010e6..c6bbc463d 100644 --- a/src/display/editor/highlight.js +++ b/src/display/editor/highlight.js @@ -96,7 +96,7 @@ class HighlightEditor extends AnnotationEditor { get telemetryInitialData() { return { action: "added", - type: this.#telemetryType, + type: this.#isFreeHighlight ? "free_highlight" : "highlight", color: this._uiManager.highlightColorNames.get(this.color), thickness: this.#thickness, methodOfCreation: this.#methodOfCreation, @@ -116,10 +116,6 @@ class HighlightEditor extends AnnotationEditor { return { numberOfColors: data.get("color").size }; } - get #telemetryType() { - return this.#isFreeHighlight ? "free_highlight" : "highlight"; - } - #createOutlines() { const outliner = new Outliner(this.#boxes, /* borderWidth = */ 0.001); this.#highlightOutlines = outliner.getOutlines();