aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/search
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-09-23 12:13:49 -0400
committerbobzel <zzzman@gmail.com>2020-09-23 12:13:49 -0400
commitc5f64716fbeb8d7f750be6e6685cd297b90d938f (patch)
treeafa2a4b0147793f875db5959a7439329c356213c /src/client/views/search
parentc7d8dd124fcc4d427fe37085317fe63f9005d3f3 (diff)
fixed exception when changing acls in shared collection. fixed adding document to shared colleciton to not give permsissions to sharer automatically
Diffstat (limited to 'src/client/views/search')
-rw-r--r--src/client/views/search/SearchBox.tsx2
1 files changed, 1 insertions, 1 deletions
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<FieldViewProps, SearchBoxDoc
let newarray: Doc[] = [];
while (docs.length > 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];