Skip to content

Commit 76e476d

Browse files
committed
Revert "Attmpt to fix runtime error"
This reverts commit fa09d1d.
1 parent 43c2893 commit 76e476d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const SearchResults = () => {
1616
const { euiTheme } = useEuiTheme()
1717

1818
if (!searchTerm) {
19-
return <></>
19+
return
2020
}
2121

2222
if (error) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export const SearchOrAskAiButton = () => {
8383
truncation="end"
8484
/>
8585
) : (
86-
'Search docs or ask AI'
86+
'Search or ask AI'
8787
)}
8888
</span>
8989
</EuiText>

src/api/Elastic.Documentation.Api.Infrastructure/MappingsExstension.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ private static void MapSearchEndpoint(IEndpointRouteBuilder group)
3939
Query = query
4040
};
4141
var searchResponse = await searchUsecase.Search(searchRequest, ctx);
42-
return searchResponse;
42+
return Results.Ok(searchResponse);
4343
});
4444
}
4545
}

0 commit comments

Comments
 (0)