diff options
-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) => { |