aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2019-02-28 09:21:10 -0500
committerGitHub <noreply@github.com>2019-02-28 09:21:10 -0500
commit5875fa1622a1270aebb56f18b17b553f10bed9dd (patch)
treec938fd15367ac5ec135347654baf8e3cd387309a /src/client/views/collections/CollectionView.tsx
parent9c9aea92d9a330f5826735c3c3e07ec35b325cc2 (diff)
parentf3085f427ec7c324d0a21d710555e79e8a9704b5 (diff)
Merge pull request #14 from browngraphicslab/kvp
Kvp
Diffstat (limited to 'src/client/views/collections/CollectionView.tsx')
-rw-r--r--src/client/views/collections/CollectionView.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/views/collections/CollectionView.tsx b/src/client/views/collections/CollectionView.tsx
index 8332249c9..f938d2237 100644
--- a/src/client/views/collections/CollectionView.tsx
+++ b/src/client/views/collections/CollectionView.tsx
@@ -49,6 +49,7 @@ export class CollectionView extends React.Component<CollectionViewProps> {
}
}
+
@action
removeDocument = (doc: Document): boolean => {
//TODO This won't create the field if it doesn't already exist
@@ -60,6 +61,7 @@ export class CollectionView extends React.Component<CollectionViewProps> {
break;
}
}
+
if (index !== -1) {
value.splice(index, 1)