aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/LinkDocPreview.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-09-30 15:35:07 -0400
committerbobzel <zzzman@gmail.com>2020-09-30 15:35:07 -0400
commit37741c2f1f594f41b2d157a9f48843a4f16fc18b (patch)
tree150217d41a84e98d5b3e80c6713df8c1689c2507 /src/client/views/nodes/LinkDocPreview.tsx
parent58f83cc1eef844420e5b418011231f995c9cf043 (diff)
fixed following summary to open new tab in place. merged link follow code
Diffstat (limited to 'src/client/views/nodes/LinkDocPreview.tsx')
-rw-r--r--src/client/views/nodes/LinkDocPreview.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/LinkDocPreview.tsx b/src/client/views/nodes/LinkDocPreview.tsx
index 234dce374..d14157c09 100644
--- a/src/client/views/nodes/LinkDocPreview.tsx
+++ b/src/client/views/nodes/LinkDocPreview.tsx
@@ -41,7 +41,7 @@ export class LinkDocPreview extends React.Component<Props> {
async followDefault() {
DocumentLinksButton.EditLink = undefined;
LinkDocPreview.LinkInfo = undefined;
- this._targetDoc ? DocumentManager.Instance.FollowLink(this.props.linkDoc, this._targetDoc, doc => this.props.addDocTab(doc, "add:right"), false) : null;
+ this._targetDoc ? DocumentManager.Instance.FollowLink(this.props.linkDoc, this._targetDoc, (doc, where) => this.props.addDocTab(doc, where), false) : null;
}
componentWillUnmount() { LinkDocPreview.TargetDoc = undefined; }