Fix: Cloudwatch fix for dimension value (#16356)

Fixes autocomplete suggestion after changing dimension key

Fixes #15984

(cherry picked from commit 58eb74660d)
This commit is contained in:
Mitsuhiro Tanda
2019-04-03 09:57:28 +02:00
committed by Torkel Ödegaard
parent 21957ad515
commit 9a575f93ad
@@ -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,