diff options
author | Tyler Schicke <tyler_schicke@brown.edu> | 2019-02-28 16:36:07 -0500 |
---|---|---|
committer | Tyler Schicke <tyler_schicke@brown.edu> | 2019-02-28 16:36:07 -0500 |
commit | 88ce1ec4b87acdbb15c7067a2455b3412fafb29b (patch) | |
tree | d32c5a87fbf9171566267239767f996b4157aad4 /src/client/views/collections/CollectionView.tsx | |
parent | fa2a9c1af221e12f10b6297851846828c6c5110f (diff) | |
parent | 5c388e0d8984bbed1b629c7af58e823de29a6490 (diff) |
Merge branch 'master' of github-tsch-brown:browngraphicslab/Dash-Web into transforms2
Diffstat (limited to 'src/client/views/collections/CollectionView.tsx')
-rw-r--r-- | src/client/views/collections/CollectionView.tsx | 2 |
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) |