aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionSubView.tsx
diff options
context:
space:
mode:
authorLionel Han <47760119+IGoByJoe@users.noreply.github.com>2020-09-06 15:35:31 -0700
committerLionel Han <47760119+IGoByJoe@users.noreply.github.com>2020-09-06 15:35:31 -0700
commit0cad8ecdf46107d50bdb4b4720a320ae1392fa5e (patch)
tree5f0a46a397591ee70947cd8b7d0de3ac4a49ebe7 /src/client/views/collections/CollectionSubView.tsx
parente11c71a94016e3fe2529d0523fd62401baf90093 (diff)
parente129b8b842d2a08f3835f5b6ff5ae498a2746b18 (diff)
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into new_audio
Diffstat (limited to 'src/client/views/collections/CollectionSubView.tsx')
-rw-r--r--src/client/views/collections/CollectionSubView.tsx8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/client/views/collections/CollectionSubView.tsx b/src/client/views/collections/CollectionSubView.tsx
index 8f0710f4b..94cd7052a 100644
--- a/src/client/views/collections/CollectionSubView.tsx
+++ b/src/client/views/collections/CollectionSubView.tsx
@@ -132,18 +132,12 @@ export function CollectionSubView<T, X>(schemaCtor: (doc: Doc) => T, moreProps?:
const childDocs = viewSpecScript ? docs.filter(d => viewSpecScript.script.run({ doc: d }, console.log).result) : docs;
const docFilters = this.docFilters();
- let searchDocs = this.searchFilterDocs();
+ const searchDocs = this.searchFilterDocs();
if (this.props.Document.dontRegisterView || (!docFilters.length && !searchDocs.length)) return childDocs;
const docsforFilter: Doc[] = [];
const docRangeFilters = this.props.ignoreFields?.includes("_docRangeFilters") ? [] : Cast(this.props.Document._docRangeFilters, listSpec("string"), []);
childDocs.forEach((d) => {
- if (this.props.Document.title === "lose this") {
- console.log('here"')
- }
- if (d.title === "lose this") {
- console.log('here"')
- }
let notFiltered = d.z || ((!searchDocs.length || searchDocs.includes(d)) && (!docFilters.length || DocUtils.FilterDocs([d], docFilters, docRangeFilters, viewSpecScript).length > 0));
const fieldKey = Doc.LayoutFieldKey(d);
const annos = !Field.toString(Doc.LayoutField(d) as Field).includes("CollectionView");