aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/DocumentManager.ts
diff options
context:
space:
mode:
authorTyler Schicke <tyler_schicke@brown.edu>2019-05-14 01:31:24 -0400
committerTyler Schicke <tyler_schicke@brown.edu>2019-05-14 01:31:24 -0400
commitaf7b264b6939429cdda9ab6b5c685b661f564773 (patch)
tree9b3e80409457d0c99d2fcefe301739e2591c8198 /src/client/util/DocumentManager.ts
parentc3a24f3cd2d1d3baf5738c649552baadf3677385 (diff)
parent0624c1696f84a7f302888e9cd3cf829e3c47c52f (diff)
Merge branch 'master' of github-tsch-brown:browngraphicslab/Dash-Web
Diffstat (limited to 'src/client/util/DocumentManager.ts')
-rw-r--r--src/client/util/DocumentManager.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/client/util/DocumentManager.ts b/src/client/util/DocumentManager.ts
index 47bcb153f..49c5d8c19 100644
--- a/src/client/util/DocumentManager.ts
+++ b/src/client/util/DocumentManager.ts
@@ -41,7 +41,7 @@ export class DocumentManager {
if (!toReturn) {
DocumentManager.Instance.DocumentViews.map(view => {
let doc = view.props.Document.proto;
- if (doc && doc.Id === id) {
+ if (doc && doc[Id] === id) {
toReturn = view;
}
});
@@ -50,7 +50,9 @@ export class DocumentManager {
return toReturn;
}
- public getDocumentView(toFind: Doc): DocumentView | null { return this.getDocumentViewById(toFind[Id]); }
+ public getDocumentView(toFind: Doc): DocumentView | null {
+ return this.getDocumentViewById(toFind[Id]);
+ }
public getDocumentViews(toFind: Doc): DocumentView[] {