diff options
| author | Stanley Yip <stanley_yip@brown.edu> | 2020-02-12 21:54:58 -0500 |
|---|---|---|
| committer | Stanley Yip <stanley_yip@brown.edu> | 2020-02-12 21:54:58 -0500 |
| commit | a8b19e82d8c9a8350609e64e60848dbfbbbb6dcd (patch) | |
| tree | 35d1e015a4b6f4913f162faec50c79c36e402350 /src/client/views/collections/CollectionView.tsx | |
| parent | 33d5a12af14e1ed50e5c3164b363fbbc253506a0 (diff) | |
| parent | 864cba561db8e26240b093da7ab524e76c8823d1 (diff) | |
merge
Diffstat (limited to 'src/client/views/collections/CollectionView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionView.tsx b/src/client/views/collections/CollectionView.tsx index dab0ce08e..ab6ac0eaf 100644 --- a/src/client/views/collections/CollectionView.tsx +++ b/src/client/views/collections/CollectionView.tsx @@ -145,7 +145,7 @@ export class CollectionView extends Touchable<FieldViewProps> { let index = value.reduce((p, v, i) => (v instanceof Doc && v === doc) ? i : p, -1); index = index !== -1 ? index : value.reduce((p, v, i) => (v instanceof Doc && Doc.AreProtosEqual(v, doc)) ? i : p, -1); - ContextMenu.Instance.clearItems(); + ContextMenu.Instance && ContextMenu.Instance.clearItems(); if (index !== -1) { value.splice(index, 1); return true; |
