aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/pdf/Page.tsx
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-08-08 12:23:47 -0400
committerbob <bcz@cs.brown.edu>2019-08-08 12:23:47 -0400
commit316c241d72fb83aad5f2bf9b143c317fdc906654 (patch)
treed31311f6bc525709a214429be84284b9d41ee4a6 /src/client/views/pdf/Page.tsx
parente946f85b46e1b1a75ba46ccf9a1ee023e749b837 (diff)
fixed issues with jumptoDocument
Diffstat (limited to 'src/client/views/pdf/Page.tsx')
-rw-r--r--src/client/views/pdf/Page.tsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client/views/pdf/Page.tsx b/src/client/views/pdf/Page.tsx
index 6bd98cbaa..7ca9d2d7d 100644
--- a/src/client/views/pdf/Page.tsx
+++ b/src/client/views/pdf/Page.tsx
@@ -112,8 +112,7 @@ export default class Page extends React.Component<IPageProps> {
if (!BoolCast(annotationDoc.linkedToDoc)) {
let annotations = await DocListCastAsync(annotationDoc.annotations);
annotations && annotations.forEach(anno => anno.target = targetDoc);
- let parentDoc = await Cast(annotationDoc.annotationOn, Doc);
- parentDoc && DocUtils.MakeLink(annotationDoc, targetDoc, dragData.targetContext, `Annotation from ${StrCast(parentDoc.title)}`, "", StrCast(parentDoc.title))
+ DocUtils.MakeLink(annotationDoc, targetDoc, dragData.targetContext, `Annotation from ${StrCast(this.props.Document.title)}`)
}
}
},