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

Fix ingress points rendering if no data available (#906)

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
Lauri Nevala 2020-09-17 16:06:11 +03:00 committed by GitHub
parent f5d41c645c
commit 0fedba5b66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,7 +67,7 @@ export class IngressDetails extends React.Component<Props> {
} }
renderIngressPoints(ingressPoints: ILoadBalancerIngress[]) { renderIngressPoints(ingressPoints: ILoadBalancerIngress[]) {
if (ingressPoints.length === 0) return null if (!ingressPoints || ingressPoints.length === 0) return null
return ( return (
<div> <div>
<Table className="ingress-points"> <Table className="ingress-points">