diff options
author | Tyler Schicke <tyler_schicke@brown.edu> | 2019-07-12 11:21:20 -0400 |
---|---|---|
committer | Tyler Schicke <tyler_schicke@brown.edu> | 2019-07-12 11:21:20 -0400 |
commit | bde549beec0b9644ff0e39585989b1a6795750eb (patch) | |
tree | f979165fe3029c3228e75fc91d59c15181f0ef48 /src/client/views/pdf/PDFViewer.tsx | |
parent | a7fa75a9b8e5811f81d6cdf92d680ab2cfb38fed (diff) | |
parent | 490f6843d3523260e6dce81de24676908c4d4b60 (diff) |
Merge branch 'master' of github-tsch-brown:browngraphicslab/Dash-Web
Diffstat (limited to 'src/client/views/pdf/PDFViewer.tsx')
-rw-r--r-- | src/client/views/pdf/PDFViewer.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/pdf/PDFViewer.tsx b/src/client/views/pdf/PDFViewer.tsx index b5efabed5..6448a1d6a 100644 --- a/src/client/views/pdf/PDFViewer.tsx +++ b/src/client/views/pdf/PDFViewer.tsx @@ -126,7 +126,7 @@ export class Viewer extends React.Component<IViewerProps> { this._annotationReactionDisposer = reaction( () => { - return this.props.parent && this.props.parent.fieldExtensionDoc && DocListCast(this.props.parent.fieldExtensionDoc.annotations) + return this.props.parent && this.props.parent.fieldExtensionDoc && DocListCast(this.props.parent.fieldExtensionDoc.annotations); }, (annotations: Doc[]) => { annotations && annotations.length && this.renderAnnotations(annotations, true); @@ -236,7 +236,7 @@ export class Viewer extends React.Component<IViewerProps> { makeAnnotationDocument = (sourceDoc: Doc | undefined, s: number, color: string): Doc => { let annoDocs: Doc[] = []; - let mainAnnoDoc = Docs.CreateInstance(new Doc(), "", {}); + let mainAnnoDoc = Docs.Create.InstanceFromProto(new Doc(), "", {}); mainAnnoDoc.title = "Annotation on " + StrCast(this.props.parent.Document.title); mainAnnoDoc.pdfDoc = this.props.parent.Document; |