aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLauren <victor_kalev@brown.edu>2021-11-06 15:32:47 -0400
committerLauren <victor_kalev@brown.edu>2021-11-06 15:32:47 -0400
commit50f8a862bd27c212b13fcd1f626aafa5434e4842 (patch)
tree35922cb793f2fd4b3eec69bfcd46cd52946226c1
parent2e6c1f2c1710548ebf86476e1476c22889f11819 (diff)
from last
-rw-r--r--src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
index 0941db5f8..0b7bf92cc 100644
--- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
+++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
@@ -669,7 +669,10 @@ export class CollectionFreeFormView extends CollectionSubView<PanZoomDocument, P
* @returns The DocumentView of the intersected stroke.
*/
getInkIntersection = (): DocumentView | null => {
- this.props.childDocuments?.filter(doc => doc.type === DocumentType.INK)
+ console.log("in intersection");
+ const currentCollection = this.props.CollectionFreeFormDocumentView?.().props.CollectionFreeFormView;
+ currentCollection?.childDocs
+ .filter(doc => doc.type === DocumentType.INK)
.forEach(doc => {
console.log("in for each");
const inkView = DocumentManager.Instance.getDocumentView(doc, this.props.CollectionView);