diff options
| author | anika-ahluwalia <anika.ahluwalia@gmail.com> | 2020-04-19 21:20:05 -0500 |
|---|---|---|
| committer | anika-ahluwalia <anika.ahluwalia@gmail.com> | 2020-04-19 21:20:05 -0500 |
| commit | 992a2ad6097dde8d6df0fad982a751701c0b4a57 (patch) | |
| tree | fb9da7b411cbcd2c5ba14ce657de953ef74642e8 /src/client/views/pdf/PDFViewer.tsx | |
| parent | 1439f57a59918ef68eac96e8e508372dc47d9444 (diff) | |
| parent | 1dae87b867efdfad8c14ab7b5642f83ec3109766 (diff) | |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into script_documents
Diffstat (limited to 'src/client/views/pdf/PDFViewer.tsx')
| -rw-r--r-- | src/client/views/pdf/PDFViewer.tsx | 2 |
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; } |
