diff options
author | Lauren <victor_kalev@brown.edu> | 2021-11-06 15:32:47 -0400 |
---|---|---|
committer | Lauren <victor_kalev@brown.edu> | 2021-11-06 15:32:47 -0400 |
commit | 50f8a862bd27c212b13fcd1f626aafa5434e4842 (patch) | |
tree | 35922cb793f2fd4b3eec69bfcd46cd52946226c1 /src | |
parent | 2e6c1f2c1710548ebf86476e1476c22889f11819 (diff) |
from last
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx | 5 |
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); |