diff --git a/src/lib/viewers/doc/DocBaseViewer.js b/src/lib/viewers/doc/DocBaseViewer.js index 5babd6e61..47fa14344 100644 --- a/src/lib/viewers/doc/DocBaseViewer.js +++ b/src/lib/viewers/doc/DocBaseViewer.js @@ -1298,7 +1298,10 @@ class DocBaseViewer extends BaseViewer { */ pagechangingHandler(event) { const { pageNumber } = event; - this.pageControls.updateCurrentPage(pageNumber); + + if (this.pageControls) { + this.pageControls.updateCurrentPage(pageNumber); + } if (this.thumbnailsSidebar) { this.thumbnailsSidebar.setCurrentPage(pageNumber);