mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
stackdriver: rename query variable
This commit is contained in:
parent
f14b3e7fcf
commit
5424603052
@ -63,7 +63,6 @@ export class StackdriverTemplateQueryComponent extends PureComponent<TemplateQue
|
||||
metricDescriptors,
|
||||
...await this.getLabels(selectedMetricType),
|
||||
};
|
||||
console.log(state);
|
||||
this.setState(state);
|
||||
}
|
||||
|
||||
@ -101,8 +100,8 @@ export class StackdriverTemplateQueryComponent extends PureComponent<TemplateQue
|
||||
|
||||
componentDidUpdate() {
|
||||
const { metricDescriptors, labels, metricTypes, services, ...queryModel } = this.state;
|
||||
const queryName = this.queryTypes.find(q => q.value === this.state.selectedQueryType);
|
||||
this.props.onChange(queryModel, `Stackdriver - ${queryName.name}`);
|
||||
const query = this.queryTypes.find(q => q.value === this.state.selectedQueryType);
|
||||
this.props.onChange(queryModel, `Stackdriver - ${query.name}`);
|
||||
}
|
||||
|
||||
isLabelQuery(queryType) {
|
||||
|
Loading…
Reference in New Issue
Block a user