aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/DocumentManager.ts
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-04-12 18:28:54 -0400
committerbob <bcz@cs.brown.edu>2019-04-12 18:28:54 -0400
commit5557c3b87df3119a3e53d2edb4bbdb9ae1deafc4 (patch)
treec2b7e0c37d89f3af7859c65782de3d559ab93bf5 /src/client/util/DocumentManager.ts
parent83f269b77aa23b641c0ec6b09fe5696936fb221b (diff)
fixed brushing
Diffstat (limited to 'src/client/util/DocumentManager.ts')
-rw-r--r--src/client/util/DocumentManager.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/client/util/DocumentManager.ts b/src/client/util/DocumentManager.ts
index f38b8ca75..b62287de8 100644
--- a/src/client/util/DocumentManager.ts
+++ b/src/client/util/DocumentManager.ts
@@ -28,8 +28,11 @@ export class DocumentManager {
}
public getAllDocumentViews(collection: Document) {
- return this.DocumentViews.filter(dv =>
- dv.props.ContainingCollectionView && dv.props.ContainingCollectionView.props.Document === collection);
+ return this.DocumentViews.filter(dv => {
+ console.log((dv.props.ContainingCollectionView && dv.props.ContainingCollectionView.props.Document ?
+ dv.props.ContainingCollectionView.props.Document.Title : "--") + " = " + collection.Title);
+ return dv.props.ContainingCollectionView && dv.props.ContainingCollectionView.props.Document === collection;
+ });
}
public getDocumentView(toFind: Document): DocumentView | null {