aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/LinkManager.ts
diff options
context:
space:
mode:
authorLionel Han <47760119+IGoByJoe@users.noreply.github.com>2020-12-03 01:21:46 -0800
committerLionel Han <47760119+IGoByJoe@users.noreply.github.com>2020-12-03 01:21:46 -0800
commit644c3cb25c27cf3d4b8047f9223c4797a9a29ea0 (patch)
tree2b54b631d975ff1bcf4d6cee48c981302e8756c7 /src/client/util/LinkManager.ts
parentc352e3535636269243e26156c99d0438a3177c37 (diff)
parent3b045d03656383df81515485032bfda9e2b16409 (diff)
pull
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 802b8ae7b..38e81cf99 100644
--- a/src/client/util/LinkManager.ts
+++ b/src/client/util/LinkManager.ts
@@ -34,7 +34,8 @@ export class LinkManager {
public getAllLinks(): Doc[] { return this.allLinks(); }
allLinks = computedFn(function allLinks(this: any): Doc[] {
- const lset = new Set<Doc>(DocListCast(Doc.LinkDBDoc().data));
+ const linkData = Doc.LinkDBDoc().data;
+ const lset = new Set<Doc>(DocListCast(linkData));
SharingManager.Instance.users.forEach(user => DocListCast(user.linkDatabase?.data).forEach(doc => lset.add(doc)));
return Array.from(lset);
}, true);