From fcf39a0839a338026a84a3d617fec749be465953 Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Thu, 1 Nov 2018 10:14:28 +0100 Subject: [PATCH] stackdriver: fix default value bug --- .../stackdriver/components/TemplateQueryComponent.tsx | 4 ++-- public/app/plugins/datasource/stackdriver/functions.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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,