aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/DocumentManager.ts
diff options
context:
space:
mode:
authorFawn <fangrui_tong@brown.edu>2019-06-10 20:02:32 -0400
committerFawn <fangrui_tong@brown.edu>2019-06-10 20:02:32 -0400
commitd429898b5337331450e46c223380e5d00967b2d6 (patch)
treea2ce1aacdb258a152c55a8800fa1e884e6ba8b94 /src/client/util/DocumentManager.ts
parent70996f3f19d408e819e081ed03bd7ccf0de44503 (diff)
added set up for metadata on links
Diffstat (limited to 'src/client/util/DocumentManager.ts')
-rw-r--r--src/client/util/DocumentManager.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/util/DocumentManager.ts b/src/client/util/DocumentManager.ts
index 52f0fe3f6..2acbb3ad4 100644
--- a/src/client/util/DocumentManager.ts
+++ b/src/client/util/DocumentManager.ts
@@ -9,7 +9,7 @@ import { CollectionView } from '../views/collections/CollectionView';
import { CollectionPDFView } from '../views/collections/CollectionPDFView';
import { CollectionVideoView } from '../views/collections/CollectionVideoView';
import { Id } from '../../new_fields/FieldSymbols';
-import { LinkManager } from './LinkManager';
+import { LinkManager, LinkUtils } from './LinkManager';
export class DocumentManager {
@@ -92,7 +92,8 @@ export class DocumentManager {
pairs.push(...linksList.reduce((pairs, link) => {
if (link) {
// let destination = (link["linkedTo"] === dv.props.Document) ? link["linkedFrom"] : link["linkedTo"];
- let destination = LinkManager.Instance.findOppositeAnchor(link, dv.props.Document);
+
+ let destination = LinkUtils.findOppositeAnchor(link, dv.props.Document);
let linkToDoc = FieldValue(Cast(destination, Doc));
// let linkToDoc = FieldValue(Cast(link.linkedTo, Doc));
if (linkToDoc) {