Skip to content

Commit

Permalink
feat(docs): updating search so that recommended pages are only displa…
Browse files Browse the repository at this point in the history
…yed after two chars are entered (#294)

Co-authored-by: josh <[email protected]>
  • Loading branch information
devjsc and josh authored Nov 28, 2023
1 parent f10b171 commit fec52b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion theme/fetch-ai-docs/components/search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ export function Search({
{renderComponent(config.search.loading)}
</span>
) : // eslint-disable-next-line unicorn/no-nested-ternary
results.length > 0 ? (
results.length > 0 && value.length > 1 ? (
results.map(({ route, prefix, children, id }, i) => (
<Fragment key={id}>
{prefix}
Expand Down

0 comments on commit fec52b9

Please sign in to comment.