diff --git a/public/app/plugins/datasource/stackdriver/components/TemplateQueryComponent.tsx b/public/app/plugins/datasource/stackdriver/components/TemplateQueryComponent.tsx index f33154f65d9..8c8c89f9197 100644 --- a/public/app/plugins/datasource/stackdriver/components/TemplateQueryComponent.tsx +++ b/public/app/plugins/datasource/stackdriver/components/TemplateQueryComponent.tsx @@ -57,7 +57,7 @@ export class StackdriverTemplateQueryComponent extends PureComponent m.value === metricType); - const selectedMetricType = metricTypeExistInArray ? metricTypeExistInArray.value : metricTypes[0].value; + const selectedMetricType = metricTypeExistInArray ? metricType : metricTypes[0].value; return { metricTypes, selectedMetricType,