diff options
author | bob <bcz@cs.brown.edu> | 2019-09-19 16:38:37 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-09-19 16:38:37 -0400 |
commit | 13e3611f87a941fe29ff0256890cdf3c74351bab (patch) | |
tree | 3585253140731387551ba4a2cfa0e00e8755c482 /src/client/views/nodes/DocumentView.tsx | |
parent | e95a771cb0bcc3add66ebd28344d6a303e7b2bca (diff) |
fixes to button bar
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index 7f3ebe026..584b5d024 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -349,7 +349,8 @@ export class DocumentView extends DocComponent<DocumentViewProps, Document>(Docu e.stopPropagation(); // const docs = await SearchUtil.Search(`data_l:"${destDoc[Id]}"`, true); // const views = docs.map(d => DocumentManager.Instance.getDocumentView(d)).filter(d => d).map(d => d as DocumentView); - de.data.linkDocument = DocUtils.MakeLink(de.data.linkSourceDocument, this.props.Document, this.props.ContainingCollectionDoc); + de.data.linkSourceDocument !== this.props.Document && + (de.data.linkDocument = DocUtils.MakeLink(de.data.linkSourceDocument, this.props.Document, this.props.ContainingCollectionDoc)); } } |