diff --git a/web/alt_text_manager.js b/web/alt_text_manager.js index dad87d3c1..a572c95d8 100644 --- a/web/alt_text_manager.js +++ b/web/alt_text_manager.js @@ -307,8 +307,7 @@ class AltTextManager { } destroy() { - this.#currentEditor = null; - this.#uiManager = null; + this.#uiManager = null; // Avoid re-adding the edit listeners. this.#finish(); this.#svgElement?.remove(); this.#svgElement = this.#rectElement = null;