aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/DocumentManager.ts
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-04-08 18:07:13 -0400
committerbob <bcz@cs.brown.edu>2019-04-08 18:07:13 -0400
commita72fcdd0ebc06a3c851007c6ed89ab13a9a0d835 (patch)
treea7f7d017f85566ce70a35cff748a26624339fc08 /src/client/util/DocumentManager.ts
parent3a9f6df918ad45e55b0c6a540cb566aff4940288 (diff)
fixed up a bunch of small things + started on text wackiness.
Diffstat (limited to 'src/client/util/DocumentManager.ts')
-rw-r--r--src/client/util/DocumentManager.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/util/DocumentManager.ts b/src/client/util/DocumentManager.ts
index bf59fbb43..341959936 100644
--- a/src/client/util/DocumentManager.ts
+++ b/src/client/util/DocumentManager.ts
@@ -29,7 +29,7 @@ export class DocumentManager {
public getAllDocumentViews(collection: Document) {
return this.DocumentViews.filter(dv =>
- dv.props.ContainingCollectionView && dv.props.ContainingCollectionView.props.Document == collection);
+ dv.props.ContainingCollectionView && dv.props.ContainingCollectionView.props.Document.Id === collection.Id);
}
public getDocumentView(toFind: Document): DocumentView | null {