Browse Source

Fix: Cloudwatch fix for dimension value (#16356)

Fixes autocomplete suggestion after changing dimension key

Fixes #15984
Mitsuhiro Tanda 6 years ago
parent
commit
58eb74660d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      public/app/plugins/datasource/cloudwatch/query_parameter_ctrl.ts

+ 1 - 0
public/app/plugins/datasource/cloudwatch/query_parameter_ctrl.ts

@@ -112,6 +112,7 @@ export class CloudWatchQueryParameterCtrl {
         query = $scope.datasource.getDimensionKeys($scope.target.namespace, $scope.target.region);
       } else if (segment.type === 'value') {
         const dimensionKey = $scope.dimSegments[$index - 2].value;
+        delete target.dimensions[dimensionKey];
         query = $scope.datasource.getDimensionValues(
           target.region,
           target.namespace,