aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/pdf/PDFViewer.tsx
diff options
context:
space:
mode:
authorSam Wilkins <35748010+samwilkins333@users.noreply.github.com>2019-07-11 18:45:57 -0400
committerGitHub <noreply@github.com>2019-07-11 18:45:57 -0400
commitaa17690d3c484e08b35cc6356c73f00eaa5e0df5 (patch)
tree6039850b3ff1f463d8ac97ab0fe5a71deb2d6e82 /src/client/views/pdf/PDFViewer.tsx
parentaeb0521e8ad8f1efc8c3a39af9eb5443c5368453 (diff)
parent5eb76c1a2da4e7c8371cb62c39ca84d2f79804d3 (diff)
Merge pull request #198 from browngraphicslab/layout_refactor
Layout refactor
Diffstat (limited to 'src/client/views/pdf/PDFViewer.tsx')
-rw-r--r--src/client/views/pdf/PDFViewer.tsx4
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;