diff options
author | bobzel <zzzman@gmail.com> | 2022-04-28 10:49:32 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-04-28 10:49:32 -0400 |
commit | 778432158e5f0bcdcb2e68ff6872a5c9335ef3af (patch) | |
tree | 7100f265448c313e63404e5f8b2f45d9bad147ff /src/client/views/nodes/LinkDocPreview.tsx | |
parent | 36261eac67ae6f872c9be2c9766d21ac24698f8e (diff) |
made sharing menu a developer feature. made link relationships support non-symmetry
Diffstat (limited to 'src/client/views/nodes/LinkDocPreview.tsx')
-rw-r--r-- | src/client/views/nodes/LinkDocPreview.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/LinkDocPreview.tsx b/src/client/views/nodes/LinkDocPreview.tsx index 28915674d..375434933 100644 --- a/src/client/views/nodes/LinkDocPreview.tsx +++ b/src/client/views/nodes/LinkDocPreview.tsx @@ -85,7 +85,7 @@ export class LinkDocPreview extends React.Component<LinkDocPreviewProps> { anchorDoc && DocServer.GetRefField(anchorDoc).then(action(anchor => { if (anchor instanceof Doc && DocListCast(anchor.links).length) { this._linkDoc = this._linkDoc ?? DocListCast(anchor.links)[0]; - const automaticLink = this._linkDoc.linkRelationship === "automatic"; + const automaticLink = this._linkDoc.linkRelationship === LinkManager.AutoKeywords; if (automaticLink) { // automatic links specify the target in the link info, not the source const linkTarget = anchor; this._linkSrc = LinkManager.getOppositeAnchor(this._linkDoc, linkTarget); |