From c5f64716fbeb8d7f750be6e6685cd297b90d938f Mon Sep 17 00:00:00 2001 From: bobzel Date: Wed, 23 Sep 2020 12:13:49 -0400 Subject: fixed exception when changing acls in shared collection. fixed adding document to shared colleciton to not give permsissions to sharer automatically --- src/client/views/search/SearchBox.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/client/views/search') diff --git a/src/client/views/search/SearchBox.tsx b/src/client/views/search/SearchBox.tsx index a6ac62ee4..b381bbfa9 100644 --- a/src/client/views/search/SearchBox.tsx +++ b/src/client/views/search/SearchBox.tsx @@ -183,7 +183,7 @@ export class SearchBox extends ViewBoxBaseComponent 0) { newarray = []; - docs.forEach(d => { + docs.filter(d => d).forEach(d => { const fieldKey = Doc.LayoutFieldKey(d); const annos = !Field.toString(Doc.LayoutField(d) as Field).includes("CollectionView"); const data = d[annos ? fieldKey + "-annotations" : fieldKey]; -- cgit v1.2.3-70-g09d2