aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionStackingView.tsx
diff options
context:
space:
mode:
authorgeireann <60007097+geireann@users.noreply.github.com>2020-11-25 00:10:33 +0800
committergeireann <60007097+geireann@users.noreply.github.com>2020-11-25 00:10:33 +0800
commit6efc3545ccca2bcb0aaf219b2a9ff1c4f06e9e91 (patch)
tree7de61389aba2db25eb7a98ff419b3f5d711a77db /src/client/views/collections/CollectionStackingView.tsx
parent28dccafaa4aa446dd88c1b6f4218a0d7f79fa1bb (diff)
loader
Diffstat (limited to 'src/client/views/collections/CollectionStackingView.tsx')
-rw-r--r--src/client/views/collections/CollectionStackingView.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/collections/CollectionStackingView.tsx b/src/client/views/collections/CollectionStackingView.tsx
index 97eacaeab..d86a6816d 100644
--- a/src/client/views/collections/CollectionStackingView.tsx
+++ b/src/client/views/collections/CollectionStackingView.tsx
@@ -290,11 +290,11 @@ export class CollectionStackingView extends CollectionSubView<StackingDocument,
dropAfter = where[axis] > (pos[axis] + pos1[axis]) / 2 ? 1 : 0;
}
});
- const oldDocs = this.childDocs.length;
+ // const oldDocs = this.childDocs.length;
if (super.onInternalDrop(e, de)) {
- const newDocs = this.childDocs.slice().filter((d: Doc, ind: number) => ind >= oldDocs);
+ // const newDocs = this.childDocs.slice().filter((d: Doc, ind: number) => ind >= oldDocs);
- //de.complete.docDragData.droppedDocuments;
+ const newDocs = de.complete.docDragData.droppedDocuments;
const docs = this.childDocList;
DragManager.docsBeingDragged = [];
if (docs && newDocs.length) {