move link outside of ternary
Signed-off-by: Jonathan Sundquist <jonathan.sundquist@factset.com>
This commit is contained in:
@@ -126,13 +126,15 @@ export const TechDocsSearchResultListItem = (
|
||||
className={classes.itemText}
|
||||
primaryTypographyProps={{ variant: 'h6' }}
|
||||
primary={
|
||||
title ? (
|
||||
<LinkWrapper>{title}</LinkWrapper>
|
||||
) : (
|
||||
<LinkWrapper>
|
||||
{resultTitle} | {entityTitle ?? resultName} docs
|
||||
</LinkWrapper>
|
||||
)
|
||||
<LinkWrapper>
|
||||
{title ? (
|
||||
title
|
||||
) : (
|
||||
<>
|
||||
{resultTitle} | {entityTitle ?? resultName} docs
|
||||
</>
|
||||
)}
|
||||
</LinkWrapper>
|
||||
}
|
||||
secondary={
|
||||
<span
|
||||
|
||||
Reference in New Issue
Block a user