diff --git a/src/lib/annotations/Annotator.js b/src/lib/annotations/Annotator.js index 817363235..60e3edf8f 100644 --- a/src/lib/annotations/Annotator.js +++ b/src/lib/annotations/Annotator.js @@ -180,7 +180,7 @@ class Annotator extends EventEmitter { * @return {void} */ renderAnnotationsOnPage(pageNum) { - if (this.threads[pageNum]) { + if (this.threads && this.threads[pageNum]) { this.threads[pageNum].forEach((thread) => { thread.show(); }); diff --git a/src/lib/viewers/BaseViewer.js b/src/lib/viewers/BaseViewer.js index 292403bdb..d304266f3 100644 --- a/src/lib/viewers/BaseViewer.js +++ b/src/lib/viewers/BaseViewer.js @@ -617,11 +617,6 @@ class BaseViewer extends EventEmitter { * @return {void} */ scaleAnnotations(data) { - // Don't try to render annotations if none have been fetched yet - if (Object.keys(this.annotator.threads).length === 0) { - return; - } - this.annotator.setScale(data.scale); this.annotator.rotateAnnotations(data.rotationAngle, data.pageNum); }