Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Commit 1280ce3

Browse files
committed
Remove confusing "no results" message
1 parent bfb98cb commit 1280ce3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/search/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import "twin.macro"
1515
// unless the number of hits is positive, i.e. `searchResults.nbHits > 0`.
1616
const Results = connectStateResults(
1717
({ searchState: state, searchResults: res, children }) =>
18-
res && res.nbHits > 0 ? children : `No results for '${state.query}'`
18+
res && res.nbHits > 0 ? children : ""
1919
)
2020

2121
export default function Search({ indices, collapse, hitsAsGrid }) {
@@ -73,7 +73,6 @@ export default function Search({ indices, collapse, hitsAsGrid }) {
7373
>
7474
{indices.map(({ name, title, hitComp }) => (
7575
<Index key={name} indexName={name}>
76-
{console.log(hitComps[hitComp])}
7776
<Results>
7877
<Hits hitComponent={hitComps[hitComp](() => setFocus(false))} />
7978
</Results>

0 commit comments

Comments
 (0)