aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);