diff options
| author | bob <bcz@cs.brown.edu> | 2019-10-21 15:45:51 -0400 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-10-21 15:45:51 -0400 |
| commit | 4d02c9b581a22da777232124f2b1a96f8e342285 (patch) | |
| tree | d9c433f1247ec3bad15c3ecdfdb8c342bcedec54 /src/client/views/pdf/PDFViewer.tsx | |
| parent | 9586d1e6bad65070a472da7a067db03f26fe9a4c (diff) | |
initial simplification to fieldExt
Diffstat (limited to 'src/client/views/pdf/PDFViewer.tsx')
| -rw-r--r-- | src/client/views/pdf/PDFViewer.tsx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client/views/pdf/PDFViewer.tsx b/src/client/views/pdf/PDFViewer.tsx index f3aaca471..361e58c65 100644 --- a/src/client/views/pdf/PDFViewer.tsx +++ b/src/client/views/pdf/PDFViewer.tsx @@ -46,7 +46,6 @@ interface IViewerProps { pdf: Pdfjs.PDFDocumentProxy; url: string; fieldKey: string; - fieldExt: string; Document: Doc; DataDoc?: Doc; ContainingCollectionView: Opt<CollectionView>; @@ -550,7 +549,7 @@ export class PDFViewer extends DocAnnotatableComponent<IViewerProps, PdfDocument highlight = (color: string) => { // creates annotation documents for current highlights let annotationDoc = this.makeAnnotationDocument(color); - annotationDoc && Doc.AddDocToList(this.props.extensionDoc, this.props.fieldExt, annotationDoc); + annotationDoc && this.props.addDocument && this.props.addDocument(annotationDoc); return annotationDoc; } |
