diff options
author | monikahedman <monika_hedman@brown.edu> | 2019-08-21 10:23:23 -0400 |
---|---|---|
committer | monikahedman <monika_hedman@brown.edu> | 2019-08-21 10:23:23 -0400 |
commit | 4a6231e1631cda4f3f09ce0202538108609a8d47 (patch) | |
tree | 41a355f31456e9181ec30ba85b746080add71282 /src/client/views/nodes/LinkMenuItem.tsx | |
parent | 2423533d1044ed14b5b356709234bbaa27fd2561 (diff) | |
parent | 9984f2f19001c07e63738947172e12da25e4498e (diff) |
pulled from master
Diffstat (limited to 'src/client/views/nodes/LinkMenuItem.tsx')
-rw-r--r-- | src/client/views/nodes/LinkMenuItem.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/LinkMenuItem.tsx b/src/client/views/nodes/LinkMenuItem.tsx index 1e7ff07c8..9349dbbac 100644 --- a/src/client/views/nodes/LinkMenuItem.tsx +++ b/src/client/views/nodes/LinkMenuItem.tsx @@ -94,7 +94,7 @@ export class LinkMenuItem extends React.Component<LinkMenuItemProps> { let dockingFunc = (document: Doc) => { this.props.addDocTab(document, undefined, "inTab"); SelectionManager.DeselectAll(); }; if (this.props.destinationDoc === self.props.linkDoc.anchor2 && targetContext) { - DocumentManager.Instance.jumpToDocument(jumpToDoc, shouldZoom, false, async document => dockingFunc(document), undefined, targetContext!); + DocumentManager.Instance.jumpToDocument(jumpToDoc, shouldZoom, false, async document => dockingFunc(document), undefined, targetContext); } else if (this.props.destinationDoc === self.props.linkDoc.anchor1 && sourceContext) { DocumentManager.Instance.jumpToDocument(jumpToDoc, shouldZoom, false, document => dockingFunc(sourceContext!)); |