move link outside of ternary

Signed-off-by: Jonathan Sundquist <jonathan.sundquist@factset.com>
This commit is contained in:
Jonathan Sundquist
2022-11-15 09:24:28 -06:00
parent a19cffbeed
commit 81e945d052
4 changed files with 41 additions and 44 deletions
@@ -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