diff --git a/src/core/image_utils.js b/src/core/image_utils.js index ea1090dff..2fbb93eb0 100644 --- a/src/core/image_utils.js +++ b/src/core/image_utils.js @@ -107,11 +107,10 @@ class GlobalImageCache { } getData(ref, pageIndex) { - if (!this._refCache.has(ref)) { + const pageIndexSet = this._refCache.get(ref); + if (!pageIndexSet) { return null; } - const pageIndexSet = this._refCache.get(ref); - if (pageIndexSet.size < GlobalImageCache.NUM_PAGES_THRESHOLD) { return null; }