Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api): allow insights options to be forwarded to Autocomplete #1904

Merged
merged 8 commits into from
Jun 8, 2023
Prev Previous commit
Update packages/docsearch-react/src/DocSearchModal.tsx
Co-authored-by: François Chalifour <francoischalifour@users.noreply.github.com>
  • Loading branch information
8bittitan and francoischalifour committed Jun 7, 2023
commit d141129ee95f4bc09a972a252a8ecca4118141d5
2 changes: 1 addition & 1 deletion packages/docsearch-react/src/DocSearchModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ export function DocSearchModal({
siblingItem.type === 'lvl1' &&
siblingItem.hierarchy.lvl1 ===
item.hierarchy.lvl1
) as InternalDocSearchHit;
) as InternalDocSearchHit | undefined;

if (item.type !== 'lvl1' && potentialParent) {
parent = potentialParent;
Expand Down