{props.icon && {props.icon}}
@@ -79,22 +80,24 @@ export function CatalogSearchResultListItem(
className={classes.itemText}
primaryTypographyProps={{ variant: 'h6' }}
primary={
- props.highlight?.fields.title ? (
-
- ) : (
- result.title
- )
+
+ {highlight?.fields.title ? (
+
+ ) : (
+ result.title
+ )}
+
}
secondary={
- props.highlight?.fields.text ? (
+ highlight?.fields.text ? (
) : (
result.text
@@ -112,6 +115,6 @@ export function CatalogSearchResultListItem(