Only display link if host is defined

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2022-03-21 08:32:59 -04:00
1 parent aa4b9bcfc6
commit 2af1fb10af
1 file changed
+9 -7
@@ -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>