move link outside of ternary
Signed-off-by: Jonathan Sundquist <jonathan.sundquist@factset.com>
This commit is contained in:
@@ -70,19 +70,17 @@ export function AdrSearchResultListItem(props: {
|
||||
className={classes.itemText}
|
||||
primaryTypographyProps={{ variant: 'h6' }}
|
||||
primary={
|
||||
highlight?.fields.title ? (
|
||||
<Link noTrack to={result.location} onClick={handleClick}>
|
||||
<Link noTrack to={result.location} onClick={handleClick}>
|
||||
{highlight?.fields.title ? (
|
||||
<HighlightedSearchResultText
|
||||
text={highlight.fields.title}
|
||||
preTag={highlight.preTag}
|
||||
postTag={highlight.postTag}
|
||||
text={highlight?.fields.title || ''}
|
||||
preTag={highlight?.preTag || ''}
|
||||
postTag={highlight?.postTag || ''}
|
||||
/>
|
||||
</Link>
|
||||
) : (
|
||||
<Link noTrack to={result.location} onClick={handleClick}>
|
||||
{result.title}
|
||||
</Link>
|
||||
)
|
||||
) : (
|
||||
result.title
|
||||
)}
|
||||
</Link>
|
||||
}
|
||||
secondary={
|
||||
<span
|
||||
|
||||
Reference in New Issue
Block a user