diff --git a/ui/scripts/autoscaler.js b/ui/scripts/autoscaler.js index 352386537c7..9aa622c8a2c 100644 --- a/ui/scripts/autoscaler.js +++ b/ui/scripts/autoscaler.js @@ -181,7 +181,7 @@ $(autoscaleVmGroup.scaleuppolicies[0].conditions).each(function(){ var condition = { id: this.id, - counterid: this.counter.id, + counterid: this.counter[0].id, relationaloperator: this.relationaloperator, threshold: this.threshold }; @@ -196,7 +196,7 @@ $(autoscaleVmGroup.scaledownpolicies[0].conditions).each(function(){ var condition = { id: this.id, - counterid: this.counter.id, + counterid: this.counter[0].id, relationaloperator: this.relationaloperator, threshold: this.threshold.toString() };