aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/LinkManager.ts
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-07-11 15:10:46 -0400
committerbob <bcz@cs.brown.edu>2019-07-11 15:10:46 -0400
commit6060e67bcf08089b826685c512e3aa181c714446 (patch)
treee54f84a576e471e72bcbba02dc3b7286a22a9415 /src/client/util/LinkManager.ts
parentd5acf6672b5b7cedf7b6d65293d671faf9bf4a4f (diff)
parent7006f67b7cf15734fb0b63d917ae392758704f75 (diff)
Merge branch 'master' into extensionFields
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 d6ea6013b..1ed040aa4 100644
--- a/src/client/util/LinkManager.ts
+++ b/src/client/util/LinkManager.ts
@@ -232,7 +232,7 @@ export class LinkManager {
// finds the opposite anchor of a given anchor in a link
//TODO This should probably return undefined if there isn't an opposite anchor
//TODO This should also await the return value of the anchor so we don't filter out promises
- public getOppositeAnchor(linkDoc: Doc, anchor: Doc): Doc {
+ public getOppositeAnchor(linkDoc: Doc, anchor: Doc): Doc | undefined {
if (Doc.AreProtosEqual(anchor, Cast(linkDoc.anchor1, Doc, null))) {
return Cast(linkDoc.anchor2, Doc, null);
} else {