From 296af36a6f903b46d89ce7aa76f1e5ec2e36a3e1 Mon Sep 17 00:00:00 2001 From: Erik Sundell Date: Wed, 22 Jan 2020 21:37:40 +0100 Subject: [PATCH] Run query when region, namespace and metric changes (#21633) --- .../datasource/cloudwatch/components/QueryFieldsEditor.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/app/plugins/datasource/cloudwatch/components/QueryFieldsEditor.tsx b/public/app/plugins/datasource/cloudwatch/components/QueryFieldsEditor.tsx index 5aa9cef3bb0..ba8c34519c9 100644 --- a/public/app/plugins/datasource/cloudwatch/components/QueryFieldsEditor.tsx +++ b/public/app/plugins/datasource/cloudwatch/components/QueryFieldsEditor.tsx @@ -94,7 +94,7 @@ export function QueryFieldsEditor({ placeholder="Select region" options={regions} allowCustomValue - onChange={({ value: region }) => onChange({ ...query, region })} + onChange={({ value: region }) => onQueryChange({ ...query, region })} /> @@ -106,7 +106,7 @@ export function QueryFieldsEditor({ placeholder="Select namespace" allowCustomValue options={namespaces} - onChange={({ value: namespace }) => onChange({ ...query, namespace })} + onChange={({ value: namespace }) => onQueryChange({ ...query, namespace })} /> @@ -116,7 +116,7 @@ export function QueryFieldsEditor({ placeholder="Select metric name" allowCustomValue loadOptions={loadMetricNames} - onChange={({ value: metricName }) => onChange({ ...query, metricName })} + onChange={({ value: metricName }) => onQueryChange({ ...query, metricName })} />