aboutsummaryrefslogtreecommitdiff
path: root/src/client/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/util')
-rw-r--r--src/client/util/LinkManager.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/client/util/LinkManager.ts b/src/client/util/LinkManager.ts
index c986bd674..6a2ac6bbb 100644
--- a/src/client/util/LinkManager.ts
+++ b/src/client/util/LinkManager.ts
@@ -199,9 +199,7 @@ export class LinkManager {
);
};
- relatedLinker = computedFn(function relatedLinker(this: any, anchor: Doc): Doc[] {
- return this.computedRelatedLinks(anchor, [anchor]);
- }, true);
+ relatedLinker = computedFn((anchor: Doc): Doc[] => this.computedRelatedLinks(anchor, [anchor]), true);
// returns map of group type to anchor's links in that group type
public getRelatedGroupedLinks(anchor: Doc): Map<string, Array<Doc>> {