Minor fix for new dashbboard column errors 6/head
authorIshan Bhatt <ishanbhatt.1989@gmail.com>
Thu, 4 Oct 2018 22:30:20 +0000 (15:30 -0700)
committerIshan Bhatt <ishanbhatt.1989@gmail.com>
Thu, 4 Oct 2018 22:30:20 +0000 (15:30 -0700)
ambari-metrics-grafana/ambari-metrics/query_ctrl.js

index 5b5c4a9..77f420d 100644 (file)
@@ -131,7 +131,7 @@ var AmbariMetricsQueryCtrl = /** @class */ (function (_super) {
                 this.target.seriesAggregator = "none";
             }
         };
-        _this.$watch('target.app', function (newValue) {
+        $scope.$watch('target.app', function (newValue) {
             if (newValue === '') {
                 this.target.metric = '';
                 this.target.hosts = '';