diff --git a/src/display/editor/editor.js b/src/display/editor/editor.js index c1066a86a..c418c533e 100644 --- a/src/display/editor/editor.js +++ b/src/display/editor/editor.js @@ -1177,6 +1177,9 @@ class AnnotationEditor { } addStandaloneCommentButton() { + if (!this._uiManager.hasCommentManager()) { + return; + } if (this.#commentStandaloneButton) { if (this._uiManager.isEditingMode()) { this.#commentStandaloneButton.classList.remove("hidden");