From 1680758323f87d15072f485c0156e6b079aad173 Mon Sep 17 00:00:00 2001
From: bobzel <zzzman@gmail.com>
Date: Wed, 24 Jan 2024 17:10:48 -0500
Subject: added dragConfig() to allow components to set custom docDragData
 fields. got rid of treeViewDoc prop

---
 src/client/views/collections/CollectionTreeView.tsx | 4 ++++
 1 file changed, 4 insertions(+)

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

diff --git a/src/client/views/collections/CollectionTreeView.tsx b/src/client/views/collections/CollectionTreeView.tsx
index cc2cf87aa..741013148 100644
--- a/src/client/views/collections/CollectionTreeView.tsx
+++ b/src/client/views/collections/CollectionTreeView.tsx
@@ -150,6 +150,10 @@ export class CollectionTreeView extends CollectionSubView<Partial<collectionTree
         }
     };
 
+    configDrag = (dragData: DragManager.DocumentDragData) => {
+        dragData.treeViewDoc = this.Document;
+    };
+
     screenToLocalTransform = () => this.ScreenToLocalBoxXf().translate(0, -this._headerHeight);
 
     @action
-- 
cgit v1.2.3-70-g09d2

