diff options
author | dg314 <david_grossman@brown.edu> | 2021-08-16 17:03:55 -0400 |
---|---|---|
committer | dg314 <david_grossman@brown.edu> | 2021-08-16 17:03:55 -0400 |
commit | 1330f03c7183e00d6de3b754e42a6e67251d8747 (patch) | |
tree | 0c70d600ef970f22d5b0fa91b989daf2355cac91 /src | |
parent | 9a11484bb0337b2b2c561190e4c9769a44471983 (diff) |
rootDoc bug fix
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/search/SearchBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/search/SearchBox.tsx b/src/client/views/search/SearchBox.tsx index 41bdd526e..fe6b5d2b0 100644 --- a/src/client/views/search/SearchBox.tsx +++ b/src/client/views/search/SearchBox.tsx @@ -188,7 +188,7 @@ export class SearchBox extends ViewBoxBaseComponent<FieldViewProps, SearchBoxDoc this._selectedResult = undefined if (collection !== undefined) { - const docs = DocListCast(collection.dataDoc[Doc.LayoutFieldKey(collection.dataDoc)]); + const docs = DocListCast(collection.rootDoc[Doc.LayoutFieldKey(collection.rootDoc)]); const docIDs: String[] = [] console.log(docs.length) SearchBox.foreachRecursiveDoc(docs, (depth: number, doc: Doc) => { |