Commit 296af36a by Erik Sundell Committed by GitHub

Run query when region, namespace and metric changes (#21633)

parent a115729c
...@@ -94,7 +94,7 @@ export function QueryFieldsEditor({ ...@@ -94,7 +94,7 @@ export function QueryFieldsEditor({
placeholder="Select region" placeholder="Select region"
options={regions} options={regions}
allowCustomValue allowCustomValue
onChange={({ value: region }) => onChange({ ...query, region })} onChange={({ value: region }) => onQueryChange({ ...query, region })}
/> />
</QueryInlineField> </QueryInlineField>
...@@ -106,7 +106,7 @@ export function QueryFieldsEditor({ ...@@ -106,7 +106,7 @@ export function QueryFieldsEditor({
placeholder="Select namespace" placeholder="Select namespace"
allowCustomValue allowCustomValue
options={namespaces} options={namespaces}
onChange={({ value: namespace }) => onChange({ ...query, namespace })} onChange={({ value: namespace }) => onQueryChange({ ...query, namespace })}
/> />
</QueryInlineField> </QueryInlineField>
...@@ -116,7 +116,7 @@ export function QueryFieldsEditor({ ...@@ -116,7 +116,7 @@ export function QueryFieldsEditor({
placeholder="Select metric name" placeholder="Select metric name"
allowCustomValue allowCustomValue
loadOptions={loadMetricNames} loadOptions={loadMetricNames}
onChange={({ value: metricName }) => onChange({ ...query, metricName })} onChange={({ value: metricName }) => onQueryChange({ ...query, metricName })}
/> />
</QueryInlineField> </QueryInlineField>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment