aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/pdf
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2020-04-19 13:30:20 -0400
committerBob Zeleznik <zzzman@gmail.com>2020-04-19 13:30:20 -0400
commitbdf4ac9601e54bf8e2a3a8f988c97274d84ae8a4 (patch)
treea7e78d4f8b4eea7d3f53772a62950afabf8609fb /src/client/views/pdf
parenta8438bd233d497a4471c4e0776c0f32b8c4ff8fd (diff)
fixed removing docs from tree view with menu. restructured current_user_utils completely
Diffstat (limited to 'src/client/views/pdf')
-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 10cfaa2f1..46b60b554 100644
--- a/src/client/views/pdf/PDFViewer.tsx
+++ b/src/client/views/pdf/PDFViewer.tsx
@@ -553,7 +553,7 @@ export class PDFViewer extends ViewBoxAnnotatableComponent<IViewerProps, PdfDocu
highlight = (color: string) => {
// creates annotation documents for current highlights
const annotationDoc = this.makeAnnotationDocument(color);
- annotationDoc && this.props?.addDocument(annotationDoc);
+ annotationDoc && this.props.addDocument?.(annotationDoc);
return annotationDoc;
}