aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/LinkManager.ts
diff options
context:
space:
mode:
authorusodhi <61431818+usodhi@users.noreply.github.com>2021-01-27 00:00:39 -0500
committerusodhi <61431818+usodhi@users.noreply.github.com>2021-01-27 00:00:39 -0500
commite3db0536ad0086a328ee353be1c4dfd34ba03e02 (patch)
treee0479af2bde1e262d6749bf2c8758e920b0ee5a9 /src/client/util/LinkManager.ts
parent720958ce62337e719a77f2ce43847011a35b6d09 (diff)
parenteb2e88ef810eed9c1d31b3b2fdc3ba848f067c53 (diff)
merged
Diffstat (limited to 'src/client/util/LinkManager.ts')
-rw-r--r--src/client/util/LinkManager.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/util/LinkManager.ts b/src/client/util/LinkManager.ts
index accf53676..bf927c5b8 100644
--- a/src/client/util/LinkManager.ts
+++ b/src/client/util/LinkManager.ts
@@ -54,7 +54,8 @@ export class LinkManager {
}, true);
relatedLinker = computedFn(function relatedLinker(this: any, anchor: Doc): Doc[] {
- return DocListCast(anchor[Doc.LayoutFieldKey(anchor) + "-annotations"]).reduce((list, anno) =>
+ const lfield = Doc.LayoutFieldKey(anchor);
+ return DocListCast(anchor[lfield + "-annotations"]).concat(DocListCast(anchor[lfield + "-annotations-timeline"])).reduce((list, anno) =>
[...list, ...LinkManager.Instance.relatedLinker(anno)],
LinkManager.Instance.directLinker(anchor).slice());
}, true);