aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/DocumentManager.ts
diff options
context:
space:
mode:
authorFawn <fangrui_tong@brown.edu>2019-06-25 21:28:15 -0400
committerFawn <fangrui_tong@brown.edu>2019-06-25 21:28:15 -0400
commita3c4aa24a9e9074da8f2421954f610c8178e10b1 (patch)
tree9306a38a513e075fce4fab3399fe87a13d7a301e /src/client/util/DocumentManager.ts
parentca8a78de9957ad27d345ad51fdaee9dae3f096bd (diff)
link metadata values appear on first load
Diffstat (limited to 'src/client/util/DocumentManager.ts')
-rw-r--r--src/client/util/DocumentManager.ts8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/client/util/DocumentManager.ts b/src/client/util/DocumentManager.ts
index 767abe63f..d7798ebfd 100644
--- a/src/client/util/DocumentManager.ts
+++ b/src/client/util/DocumentManager.ts
@@ -73,6 +73,9 @@ export class DocumentManager {
if (doc === toFind) {
toReturn.push(view);
} else {
+ // if (Doc.AreProtosEqual(doc, toFind)) {
+ // toReturn.push(view);
+
let docSrc = FieldValue(doc.proto);
if (docSrc && Object.is(docSrc, toFind)) {
toReturn.push(view);
@@ -100,11 +103,6 @@ export class DocumentManager {
return pairs;
}, [] as { a: DocumentView, b: DocumentView, l: Doc }[]);
- // console.log("LINKED DOCUMENT VIEWS");
- // pairs.forEach(p => {
- // console.log(StrCast(p.a.Document.title), p.a.props.Document[Id], StrCast(p.b.Document.title), p.b.props.Document[Id]);
- // });
-
return pairs;
}