aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/DocumentView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-11-03 21:40:53 -0500
committerbobzel <zzzman@gmail.com>2020-11-03 21:40:53 -0500
commitf23e2f2bcb6ab7fb1895a87a34f8eafcbab90a8d (patch)
treec8339d70f620f13d7af5bbb8ea6f2812a0f9cf95 /src/client/views/nodes/DocumentView.tsx
parenta43c3c014c3e7bbdfbee8bf234a5812d1601b945 (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.tsx2
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;