diff --git a/src/pdf/page.js b/src/pdf/page.js index b43ec300..077112e3 100644 --- a/src/pdf/page.js +++ b/src/pdf/page.js @@ -458,10 +458,10 @@ export default class Page { } _renderFindResults() { - if (!this.layer._findController) { - return; - } - if (!this.layer._findController.highlightMatches) { + if (!this.layer._findController + || !this.layer._findController.highlightMatches + || !this.layer._findController._matchesCountTotal + ) { return; } let { _pageMatchesPosition, selected } = this.layer._findController;