diff options
| author | bobzel <zzzman@gmail.com> | 2021-02-12 12:17:44 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2021-02-12 12:17:44 -0500 |
| commit | d0607264d955d90eca8178d5bfbc6a72f47fa872 (patch) | |
| tree | 3320a09e7f113f87dfbb1b7d9155605fa7a3f1b1 /src/client/views/collections/CollectionSubView.tsx | |
| parent | 4a9d6d1409327fd99c5f554caebd917a316db32b (diff) | |
fixed subtle bug with lightbox inadvertently clearing out childDoc list of a collection. added shift-double-cllick to open collection in lightbox.
Diffstat (limited to 'src/client/views/collections/CollectionSubView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionSubView.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionSubView.tsx b/src/client/views/collections/CollectionSubView.tsx index 287bc56c2..3cbda37e2 100644 --- a/src/client/views/collections/CollectionSubView.tsx +++ b/src/client/views/collections/CollectionSubView.tsx @@ -112,7 +112,9 @@ export function CollectionSubView<T, X>(schemaCtor: (doc: Doc) => T, moreProps?: const docFilters = this.docFilters(); const docRangeFilters = this.docRangeFilters(); const searchDocs = this.searchFilterDocs(); - if (this.props.Document.dontRegisterView || (!docFilters.length && !docRangeFilters.length && !searchDocs.length)) return childDocs; + if (this.props.Document.dontRegisterView || (!docFilters.length && !docRangeFilters.length && !searchDocs.length)) { + return childDocs; + } const docsforFilter: Doc[] = []; childDocs.forEach((d) => { |
