aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/LinkManager.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2022-04-28 12:13:44 -0400
committerbobzel <zzzman@gmail.com>2022-04-28 12:13:44 -0400
commit59a22f3a007b201e68ac2f3e1d62e0ca5e66488a (patch)
tree37ecac13872202fbf5872f27163c69e6c7e565a0 /src/client/util/LinkManager.ts
parent778432158e5f0bcdcb2e68ff6872a5c9335ef3af (diff)
fixed feedback dragging link button. fixed warnings. added some assymetric linkRelationships.
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 7ba7a1d4c..9445533dc 100644
--- a/src/client/util/LinkManager.ts
+++ b/src/client/util/LinkManager.ts
@@ -152,7 +152,7 @@ export class LinkManager {
this.relatedLinker(anchor).forEach(link => {
if (link.linkRelationship && link.linkRelationship !== "-ungrouped-") {
const relation = StrCast(link.linkRelationship);
- const anchorRelation = relation.indexOf(":") ? relation.split(":")[Doc.AreProtosEqual(Cast(link.anchor1, Doc, null), anchor) ? 0 : 1] : relation;
+ const anchorRelation = relation.indexOf(":") !== -1 ? relation.split(":")[Doc.AreProtosEqual(Cast(link.anchor1, Doc, null), anchor) ? 0 : 1] : relation;
const group = anchorGroups.get(anchorRelation);
anchorGroups.set(anchorRelation, group ? [...group, link] : [link]);
} else {