From 0607dce05a6f997308c15e32b9c6ae688ebef11b Mon Sep 17 00:00:00 2001 From: dg314 Date: Sat, 14 Aug 2021 15:59:14 -0400 Subject: testing --- src/client/views/search/SearchBox.tsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/client/views/search/SearchBox.tsx b/src/client/views/search/SearchBox.tsx index 9150b2e39..b9b3e358d 100644 --- a/src/client/views/search/SearchBox.tsx +++ b/src/client/views/search/SearchBox.tsx @@ -9,6 +9,7 @@ import { StrCast } from '../../../fields/Types'; import { DocumentType } from "../../documents/DocumentTypes"; import { DocumentManager } from "../../util/DocumentManager"; import { CollectionDockingView } from "../collections/CollectionDockingView"; +import { CollectionSchemaBooleanCell } from '../collections/collectionSchema/CollectionSchemaCells'; import { ViewBoxBaseComponent } from "../DocComponent"; import { FieldView, FieldViewProps } from '../nodes/FieldView'; import "./SearchBox.scss"; @@ -28,7 +29,6 @@ export class SearchBox extends ViewBoxBaseComponent(); - private _selectedCollection = CollectionDockingView.Instance; @observable _searchString = ""; @observable _docTypeString = "all"; @@ -182,16 +182,21 @@ export class SearchBox extends ViewBoxBaseComponent { const dtype = StrCast(doc.type, "string") as DocumentType; + console.log("HELLO"); if (dtype && !blockedTypes.includes(dtype) && !docIDs.includes(doc[Id]) && depth > 0) { const hlights = new Set(); SearchBox.documentKeys(doc).forEach(key => Field.toString(doc[key] as Field).toLowerCase().includes(query) && hlights.add(key)); -- cgit v1.2.3-70-g09d2