From 5424603052400b30c1bb56b5be10e902c691f387 Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Fri, 9 Nov 2018 13:44:58 +0100 Subject: [PATCH] stackdriver: rename query variable --- .../stackdriver/components/TemplateQueryComponent.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/public/app/plugins/datasource/stackdriver/components/TemplateQueryComponent.tsx b/public/app/plugins/datasource/stackdriver/components/TemplateQueryComponent.tsx index b8620b461f3..baf49fa2301 100644 --- a/public/app/plugins/datasource/stackdriver/components/TemplateQueryComponent.tsx +++ b/public/app/plugins/datasource/stackdriver/components/TemplateQueryComponent.tsx @@ -63,7 +63,6 @@ export class StackdriverTemplateQueryComponent extends PureComponent 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) {