Skip to content

Commit f7a1625

Browse files
committed
Remove unused result count logic from SearchResults and filters
1 parent 643d2d5 commit f7a1625

File tree

1 file changed

+0
-7
lines changed
  • src/Elastic.Documentation.Site/Assets/web-components/SearchOrAskAi/Search/SearchResults

1 file changed

+0
-7
lines changed

src/Elastic.Documentation.Site/Assets/web-components/SearchOrAskAi/Search/SearchResults/SearchResults.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,6 @@ export const SearchResults = ({
3838

3939
const results = data?.results ?? []
4040
const typeAggregations = data?.aggregations?.type
41-
const counts = {
42-
apiResultsCount: typeAggregations?.['api'] ?? 0,
43-
docsResultsCount: typeAggregations?.['doc'] ?? 0,
44-
totalCount:
45-
(typeAggregations?.['api'] ?? 0) + (typeAggregations?.['doc'] ?? 0),
46-
}
4741

4842
const isInitialLoading = isLoading && !data
4943

@@ -63,7 +57,6 @@ export const SearchResults = ({
6357
{!error && (
6458
<>
6559
<SearchFilters
66-
counts={counts}
6760
isLoading={isInitialLoading}
6861
inputRef={inputRef}
6962
itemRefs={itemRefs}

0 commit comments

Comments
 (0)