aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/frontend/src/main/components/search/searchResultRow.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/base/frontend/src/main/components/search/searchResultRow.tsx')
-rw-r--r--plugins/base/frontend/src/main/components/search/searchResultRow.tsx12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/base/frontend/src/main/components/search/searchResultRow.tsx b/plugins/base/frontend/src/main/components/search/searchResultRow.tsx
index 83dd2bcb..5910eec4 100644
--- a/plugins/base/frontend/src/main/components/search/searchResultRow.tsx
+++ b/plugins/base/frontend/src/main/components/search/searchResultRow.tsx
@@ -10,14 +10,14 @@ const Highlighter: React.FC<HighlighterProps> = ({label}: HighlighterProps) => {
return <strong>{label}</strong>
}
-export const SearchResultRow: React.FC<SearchProps> = ({searchResult}: SearchProps) => {
- const signatureFromSearchResult = (searchResult: OptionWithSearchResult): string => {
- if(searchResult.rank == SearchRank.SearchKeyMatch){
- return searchResult.name.replace(searchResult.searchKey, searchResult.highlight)
- }
- return searchResult.highlight
+export const signatureFromSearchResult = (searchResult: OptionWithSearchResult): string => {
+ if(searchResult.rank == SearchRank.SearchKeyMatch){
+ return searchResult.name.replace(searchResult.searchKey, searchResult.highlight)
}
+ return searchResult.highlight
+}
+export const SearchResultRow: React.FC<SearchProps> = ({searchResult}: SearchProps) => {
/*
This is a work-around for an issue: https://youtrack.jetbrains.com/issue/RG-2108
*/