From 50f8a862bd27c212b13fcd1f626aafa5434e4842 Mon Sep 17 00:00:00 2001
From: Lauren <victor_kalev@brown.edu>
Date: Sat, 6 Nov 2021 15:32:47 -0400
Subject: from last

---
 .../views/collections/collectionFreeForm/CollectionFreeFormView.tsx  | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx')

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);
-- 
cgit v1.2.3-70-g09d2

