diff options
author | bobzel <zzzman@gmail.com> | 2020-09-30 18:24:01 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-09-30 18:24:01 -0400 |
commit | b03be7d0cb63c36c74f3f4ee7524459846e0b9ea (patch) | |
tree | a243772be5b4c28365a8104acabc83492a7c6d21 /src/client/util/LinkManager.ts | |
parent | f24477e19320ce5055fa5c5e3dd5007d590397a9 (diff) |
fixed performance issue with links
Diffstat (limited to 'src/client/util/LinkManager.ts')
-rw-r--r-- | src/client/util/LinkManager.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/util/LinkManager.ts b/src/client/util/LinkManager.ts index 694a7f3a7..269de08a1 100644 --- a/src/client/util/LinkManager.ts +++ b/src/client/util/LinkManager.ts @@ -67,7 +67,7 @@ export class LinkManager { const a2 = Cast(link.anchor2, Doc, null); const protomatch1 = Doc.AreProtosEqual(anchor, a1); const protomatch2 = Doc.AreProtosEqual(anchor, a2); - return ((a1?.title !== undefined && a2?.title !== undefined) || link.author === Doc.CurrentUserEmail) && (protomatch1 || protomatch2 || Doc.AreProtosEqual(link, anchor)); + return ((a1?.author !== undefined && a2?.author !== undefined) || link.author === Doc.CurrentUserEmail) && (protomatch1 || protomatch2 || Doc.AreProtosEqual(link, anchor)); }); return related; } |