Skip to content

Commit

Permalink
fix(core/loadBalancer): Handle null healthCheckProtocol (#8732)
Browse files Browse the repository at this point in the history
  • Loading branch information
vigneshm committed Nov 12, 2020
1 parent dc36463 commit 645b99d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -40,7 +40,7 @@ export class InstanceLoadBalancerHealth extends React.Component<IInstanceLoadBal
<span style={{ color: 'var(--color-danger)' }}>{description}</span>
) : null;

const healthCheck = healthCheckProtocol.toLowerCase().startsWith('http') ? (
const healthCheck = healthCheckProtocol?.toLowerCase().startsWith('http') ? (
<a target="_blank" href={`${healthCheckProtocol}://${ipAddress}${healthCheckPath}`}>
Health Check
</a>
Expand Down

0 comments on commit 645b99d

Please sign in to comment.