aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/pdf/PDFViewer.tsx
diff options
context:
space:
mode:
authoryipstanley <stanley_yip@brown.edu>2019-06-10 10:58:00 -0400
committeryipstanley <stanley_yip@brown.edu>2019-06-10 10:58:00 -0400
commit81a502f81073e7fb15c75563cd557a6a2c5a31cd (patch)
treee53a10b6f6901231e47b61c474ce223b84faaabf /src/client/views/pdf/PDFViewer.tsx
parent92cdb8dae6162b1aa7e41f3392c670e7c5d377eb (diff)
annotation loading maybe idk not workign rn
Diffstat (limited to 'src/client/views/pdf/PDFViewer.tsx')
-rw-r--r--src/client/views/pdf/PDFViewer.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/pdf/PDFViewer.tsx b/src/client/views/pdf/PDFViewer.tsx
index 0711ead23..0a6886878 100644
--- a/src/client/views/pdf/PDFViewer.tsx
+++ b/src/client/views/pdf/PDFViewer.tsx
@@ -184,7 +184,7 @@ class Viewer extends React.Component<IViewerProps> {
// render pages for any indices that don't already have pages (force rerender will make these render regardless)
for (let i = startIndex; i <= endIndex; i++) {
- if (!this._isPage[i] || forceRender) {
+ if (!this._isPage[i] || (this._isPage[i] && forceRender)) {
this._visibleElements[i] = (
<Page
pdf={this.props.pdf}