diff options
author | bobzel <zzzman@gmail.com> | 2020-11-03 21:40:53 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-11-03 21:40:53 -0500 |
commit | f23e2f2bcb6ab7fb1895a87a34f8eafcbab90a8d (patch) | |
tree | c8339d70f620f13d7af5bbb8ea6f2812a0f9cf95 /src/client/views/nodes/DocumentView.tsx | |
parent | a43c3c014c3e7bbdfbee8bf234a5812d1601b945 (diff) |
fixed LinkManager to cache links correctly. fixes issue with linkButton not showing the correct number.
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index f6a147c50..3ebaad0a3 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -990,7 +990,7 @@ export class DocumentView extends DocComponent<DocumentViewProps, Document>(Docu anchorPanelHeight = () => this.props.PanelHeight() || 1; @computed get directLinks() { TraceMobx(); return LinkManager.Instance.getAllDirectLinks(this.rootDoc); } - @computed get allLinks() { TraceMobx(); return DocListCast(this.Document.links); } + @computed get allLinks() { TraceMobx(); return LinkManager.Instance.getAllRelatedLinks(this.rootDoc); } @computed get allAnchors() { TraceMobx(); if (this.props.LayoutTemplateString?.includes("LinkAnchorBox")) return null; |