aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgeireann <geireann.lindfield@gmail.com>2024-03-14 11:57:33 -0400
committergeireann <geireann.lindfield@gmail.com>2024-03-14 11:57:33 -0400
commit0fcfcdf78a7736b4ecb414f6127020bbcceee267 (patch)
treed55e8bb1e267751faaf0f72aeb2ec126eb45a5d9 /src
parent409a72c8c2546851fc824877b27a71d101839e7e (diff)
fixed dragging system documents in files sidebar
Diffstat (limited to 'src')
-rw-r--r--src/client/views/collections/TreeView.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/TreeView.tsx b/src/client/views/collections/TreeView.tsx
index c6bbcb0a5..08c00d696 100644
--- a/src/client/views/collections/TreeView.tsx
+++ b/src/client/views/collections/TreeView.tsx
@@ -1055,7 +1055,7 @@ export class TreeView extends ObservableReactComponent<TreeViewProps> {
this,
e,
() => {
- this._dref?.startDragging(e.clientX, e.clientY, '' as any);
+ (this._dref ?? this._docRef)?.startDragging(e.clientX, e.clientY, '' as any);
return true;
},
returnFalse,