mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Merge pull request #16424 from Snuffleupagus/core-optional-chaining
Introduce more optional chaining in the `src/core/` folder
This commit is contained in:
commit
ac8032628b
27 changed files with 90 additions and 137 deletions
|
@ -2317,8 +2317,8 @@ function webViewerPageRendered({ pageNumber, error }) {
|
|||
const thumbnailView = PDFViewerApplication.pdfThumbnailViewer?.getThumbnail(
|
||||
/* index = */ pageNumber - 1
|
||||
);
|
||||
if (pageView && thumbnailView) {
|
||||
thumbnailView.setImage(pageView);
|
||||
if (pageView) {
|
||||
thumbnailView?.setImage(pageView);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue