aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/LinkManager.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-09-24 13:16:23 -0400
committerbobzel <zzzman@gmail.com>2020-09-24 13:16:23 -0400
commitee511f1e0b5ce7de221d3c6ed6251c1636db54fc (patch)
treeba6d231c5d4fa6af03d5cc778d09133c5a24f157 /src/client/util/LinkManager.ts
parent9aaf620dd57b144c36ac9d5cd3c32b3c6ecf33db (diff)
changed dragging pdf link note to not create a note when dropped on annotatable item (image, video, pdf)
Diffstat (limited to 'src/client/util/LinkManager.ts')
-rw-r--r--src/client/util/LinkManager.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/util/LinkManager.ts b/src/client/util/LinkManager.ts
index 4f3cfcd03..694a7f3a7 100644
--- a/src/client/util/LinkManager.ts
+++ b/src/client/util/LinkManager.ts
@@ -63,7 +63,7 @@ export class LinkManager {
// finds all links that contain the given anchor
public getAllDirectLinks(anchor: Doc): Doc[] {
const related = LinkManager.Instance.getAllLinks().filter(link => link).filter(link => {
- const a1 = Cast(link.anchor1, Doc, null)
+ const a1 = Cast(link.anchor1, Doc, null);
const a2 = Cast(link.anchor2, Doc, null);
const protomatch1 = Doc.AreProtosEqual(anchor, a1);
const protomatch2 = Doc.AreProtosEqual(anchor, a2);