Skip to content

Commit

Permalink
fix(test): Fix possible sanity test bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Mingze Xiao committed Dec 13, 2019
1 parent 7472809 commit 53dc19e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/ThumbnailsSidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ class ThumbnailsSidebar {
* @return {Promise} - promise reolves with the image HTMLElement or null if generation is in progress
*/
createThumbnailImage(itemIndex) {
const cacheEntry = this.thumbnailImageCache.get(itemIndex);
const cacheEntry = this.thumbnailImageCache && this.thumbnailImageCache.get(itemIndex);

// If this thumbnail has already been cached, use it
if (cacheEntry && cacheEntry.image) {
Expand Down

0 comments on commit 53dc19e

Please sign in to comment.