aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-10-06 14:12:06 -0400
committerbobzel <zzzman@gmail.com>2020-10-06 14:12:06 -0400
commite66380d8a99c3ee61faeaaebf6e28395332e1d64 (patch)
tree925f74f8bc6a0d0a33f6b9d2383f6786b25a1648 /src/client/views/collections/CollectionView.tsx
parent82355dad8304a3264349734a94db13aa94bb277c (diff)
fixed list additions to be truly incremental to allow undo to work
Diffstat (limited to 'src/client/views/collections/CollectionView.tsx')
-rw-r--r--src/client/views/collections/CollectionView.tsx1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionView.tsx b/src/client/views/collections/CollectionView.tsx
index 0ef3dd6cd..80e9b41ad 100644
--- a/src/client/views/collections/CollectionView.tsx
+++ b/src/client/views/collections/CollectionView.tsx
@@ -196,7 +196,6 @@ export class CollectionView extends Touchable<FieldViewProps & CollectionViewCus
const recent = Cast(Doc.UserDoc().myRecentlyClosedDocs, Doc) as Doc;
toRemove.forEach(doc => {
const ind = (targetDataDoc[this.props.fieldKey] as List<Doc>).indexOf(doc);
- (targetDataDoc[this.props.fieldKey] as List<Doc>).splice(ind, 0);
if (ind !== -1) {
Doc.RemoveDocFromList(targetDataDoc, this.props.fieldKey, doc);
recent && Doc.AddDocToList(recent, "data", doc, undefined, true, true);