diff --git a/web/pdf_find_bar.js b/web/pdf_find_bar.js index a4e9d8ef1..325f8be10 100644 --- a/web/pdf_find_bar.js +++ b/web/pdf_find_bar.js @@ -153,7 +153,7 @@ class PDFFindBar { this.updateResultsCount(matchesCount); } - updateResultsCount({ current, total, }) { + updateResultsCount({ current = 0, total = 0, } = {}) { if (!this.findResultsCount) { return; // No UI control is provided. }