aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx
diff options
context:
space:
mode:
authormehekj <mehek.jethani@gmail.com>2023-03-01 21:17:28 -0500
committermehekj <mehek.jethani@gmail.com>2023-03-01 21:17:28 -0500
commitfdf2f866e948d030e7b29009ed5c06e384d74fe1 (patch)
treecfc71147a60965700e04412a1d1ecd676f37d6a0 /src/client/views/collections/collectionSchema/CollectionSchemaView.tsx
parent9853c1e3ca1c3a1d2da210118b927adc559e67fa (diff)
drag and drop working
Diffstat (limited to 'src/client/views/collections/collectionSchema/CollectionSchemaView.tsx')
-rw-r--r--src/client/views/collections/collectionSchema/CollectionSchemaView.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx b/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx
index 02591489b..c52a7f3e4 100644
--- a/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx
+++ b/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx
@@ -343,14 +343,14 @@ export class CollectionSchemaView extends CollectionSubView() {
@action
selectRow = (doc: Doc, shift: boolean, ctrl: boolean) => {
- console.log(ctrl);
const index = this.childDocs.indexOf(doc);
if (index < 0) return;
if (shift && this._lastSelectedRow !== undefined) {
const startRow = Math.min(this._lastSelectedRow, index);
const endRow = Math.max(this._lastSelectedRow, index);
for (let i = startRow; i <= endRow; i++) {
- this.addDocToSelection(this.childDocs[i], true, i);
+ const currDoc = this.childDocs[i];
+ if (!this._selectedDocs.has(currDoc)) this.addDocToSelection(currDoc, true, i);
}
this._lastSelectedRow = index;
} else if (ctrl) {