mirror of https://github.com/rancher/ui.git
Handle null port rules
This commit is contained in:
parent
308c22a07a
commit
d23f4ee600
|
|
@ -47,7 +47,7 @@ var LoadBalancerService = Service.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
sslPorts: function() {
|
sslPorts: function() {
|
||||||
let out = this.get('lbConfig.portRules').filterBy('isTls',true).map((x) => x.get('sourcePort')).uniq();
|
let out = (this.get('lbConfig.portRules')||[]).filterBy('isTls',true).map((x) => x.get('sourcePort')).uniq();
|
||||||
return out;
|
return out;
|
||||||
}.property(`lbConfig.portRules.@each.{isTls,sourcePort}`),
|
}.property(`lbConfig.portRules.@each.{isTls,sourcePort}`),
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue