diff options
| author | bob <bcz@cs.brown.edu> | 2020-02-06 15:14:56 -0500 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2020-02-06 15:14:56 -0500 |
| commit | 045233f2a8b8e79e6a3255ed594218929db1b042 (patch) | |
| tree | 827f0994eb63233c4511925983cc7550fee39bb8 /src/client/views/collections/CollectionSubView.tsx | |
| parent | 96307685adc3460f4269606b5f826854ce3cf280 (diff) | |
added pivoting into a pivot column
Diffstat (limited to 'src/client/views/collections/CollectionSubView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionSubView.tsx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/client/views/collections/CollectionSubView.tsx b/src/client/views/collections/CollectionSubView.tsx index 731b5b01d..a2700e75a 100644 --- a/src/client/views/collections/CollectionSubView.tsx +++ b/src/client/views/collections/CollectionSubView.tsx @@ -128,15 +128,11 @@ export function CollectionSubView<T>(schemaCtor: (doc: Doc) => T) { const filteredDocs = docFilters.length ? viewedDocs.filter(d => { for (const key of Object.keys(clusters)) { const cluster = clusters[key]; - const satisfiesFacetx = !Object.keys(cluster).some((inner) => { - const modifier = cluster[inner]; - return ((modifier === "x") === Doc.matchFieldValue(d, key, inner)); - }); const satisfiesFacet = Object.keys(cluster).some(inner => { const modifier = cluster[inner]; return (modifier === "x") !== Doc.matchFieldValue(d, key, inner); }); - if (!satisfiesFacet || !satisfiesFacetx) { + if (!satisfiesFacet) { return false; } } |
