diff options
author | Fawn <fangrui_tong@brown.edu> | 2019-06-25 20:18:14 -0400 |
---|---|---|
committer | Fawn <fangrui_tong@brown.edu> | 2019-06-25 20:18:14 -0400 |
commit | 2d300b0cd3d02c900865c61eacd539efed5289e6 (patch) | |
tree | 8a71792efda43c0ee4c37f716bae7f2bb63a2c95 /src/client/util/LinkManager.ts | |
parent | 2a698e88da5ef0a9fee1ff4ee69746f1242798c9 (diff) |
fixed link metadata rendering bug
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 60de7fc52..db814082f 100644 --- a/src/client/util/LinkManager.ts +++ b/src/client/util/LinkManager.ts @@ -156,7 +156,7 @@ export class LinkManager { // removes group doc of given group type only from given anchor on given link public removeGroupFromAnchor(linkDoc: Doc, anchor: Doc, groupType: string) { let groups = LinkManager.Instance.getAnchorGroups(linkDoc, anchor); - let newGroups = groups.filter(groupDoc => StrCast(groupDoc.type).toUpperCase() !== groupType.toUpperCase()); + let newGroups = groups.filter(groupDoc => { StrCast(groupDoc.type).toUpperCase() !== groupType.toUpperCase() }); LinkManager.Instance.setAnchorGroups(linkDoc, anchor, newGroups); } |