aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/DocumentManager.ts
diff options
context:
space:
mode:
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;
}