aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordg314 <david_grossman@brown.edu>2021-08-16 17:03:55 -0400
committerdg314 <david_grossman@brown.edu>2021-08-16 17:03:55 -0400
commit1330f03c7183e00d6de3b754e42a6e67251d8747 (patch)
tree0c70d600ef970f22d5b0fa91b989daf2355cac91 /src
parent9a11484bb0337b2b2c561190e4c9769a44471983 (diff)
rootDoc bug fix
Diffstat (limited to 'src')
-rw-r--r--src/client/views/search/SearchBox.tsx2
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) => {