CloudWatch: Annotations query editor loading fix (#20687)

* Re-adding lost import

* Make sure wildcard is not in annotations editor
This commit is contained in:
Erik Sundell
2019-11-27 11:48:58 +01:00
committed by GitHub
parent 21fed8c5f1
commit 2929649fd4
3 changed files with 3 additions and 1 deletions

View File

@@ -159,6 +159,7 @@ export class QueryEditor extends PureComponent<Props, State> {
const { [newKey]: value, ...newDimensions } = query.dimensions;
return datasource
.getDimensionValues(query.region, query.namespace, query.metricName, newKey, newDimensions)
.then(values => (values.length ? [{ value: '*', text: '*', label: '*' }, ...values] : values))
.then(this.appendTemplateVariables);
}}
/>