diff options
| author | bob <bcz@cs.brown.edu> | 2020-02-05 15:05:32 -0500 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2020-02-05 15:05:32 -0500 |
| commit | ab95c12485c26e5e0e6dc48cef8abd63a9c1fb56 (patch) | |
| tree | 54836db0c0124d005d3ea5cc6b80a2bc1f136ad0 /src/client/views/collections/CollectionSubView.tsx | |
| parent | a0ca191b6263e3ccff8740ddf6cf9cba68b9f2f9 (diff) | |
several layout fixes for row/col stuff. fixes to icons. added buttons for buxton app. made PresBox not search for its own contents when following a link
Diffstat (limited to 'src/client/views/collections/CollectionSubView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionSubView.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionSubView.tsx b/src/client/views/collections/CollectionSubView.tsx index a2700e75a..731b5b01d 100644 --- a/src/client/views/collections/CollectionSubView.tsx +++ b/src/client/views/collections/CollectionSubView.tsx @@ -128,11 +128,15 @@ 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) { + if (!satisfiesFacet || !satisfiesFacetx) { return false; } } |
