Skip to content

Commit

Permalink
fix: InfoBox ingress with no IP error
Browse files Browse the repository at this point in the history
  • Loading branch information
benc-uk committed Apr 6, 2020
1 parent bf7d8f6 commit 14f70fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/client/src/components/InfoBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ export default {
if (this.utilsCheckNested(statusCopy, 'loadBalancer', 'ingress')) {
statusCopy.loadBalancerIPs = ''
for (let ingress of statusCopy.loadBalancer.ingress) {
statusCopy.loadBalancerIPs += (ingress.ip.toString() + ' ')
if (ingress.ip && ingress.ip.length > 0) {
statusCopy.loadBalancerIPs += (ingress.ip.toString() + ' ')
}
}
}
Expand Down

0 comments on commit 14f70fa

Please sign in to comment.