diff options
author | bobzel <zzzman@gmail.com> | 2020-10-10 20:24:41 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-10-10 20:24:41 -0400 |
commit | c63aeeb0010a79f0b19d8719f97d98b7a83baf3b (patch) | |
tree | 06f3033fe74586d59a6998173899e38bca043059 /src/client/util/LinkManager.ts | |
parent | c03949832eaff9c29fe48f8ec702362810c7f3b6 (diff) |
cached groups user is in for efficiency which avoids th whole screen redrawing when a group is added.
Diffstat (limited to 'src/client/util/LinkManager.ts')
-rw-r--r-- | src/client/util/LinkManager.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/client/util/LinkManager.ts b/src/client/util/LinkManager.ts index 0456b4029..e74ce87f8 100644 --- a/src/client/util/LinkManager.ts +++ b/src/client/util/LinkManager.ts @@ -1,6 +1,4 @@ import { Doc, DocListCast, Opt } from "../../fields/Doc"; -import { List } from "../../fields/List"; -import { listSpec } from "../../fields/Schema"; import { Cast, StrCast } from "../../fields/Types"; import { SharingManager } from "./SharingManager"; import { computedFn } from "mobx-utils"; @@ -71,7 +69,7 @@ export class LinkManager { related.push(...LinkManager.Instance.getAllRelatedLinks(anno)); }); return related; - }.bind(this)); + }.bind(this), true); // finds all links that contain the given anchor public getAllRelatedLinks(anchor: Doc): Doc[] { |