1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Only display link if host is defined

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2022-02-03 10:38:32 -05:00
parent aa4b9bcfc6
commit 2af1fb10af

View File

@ -77,13 +77,15 @@ export class IngressDetails extends React.Component<IngressDetailsProps> {
<TableRow key={index}>
<TableCell className="path">{path}</TableCell>
<TableCell className="link">
<a
href={link}
rel="noreferrer"
target="_blank"
>
{link}
</a>
{
rule.host
? (
<a href={link} rel="noreferrer" target="_blank">
{link}
</a>
)
: link
}
</TableCell>
<TableCell className="backends">{getBackendServiceNamePort(backend)}</TableCell>
</TableRow>