mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 12:14:08 -06:00
Run query when region, namespace and metric changes (#21633)
This commit is contained in:
parent
a115729c55
commit
296af36a6f
@ -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 })}
|
||||
/>
|
||||
</QueryInlineField>
|
||||
|
||||
@ -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 })}
|
||||
/>
|
||||
</QueryInlineField>
|
||||
|
||||
@ -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 })}
|
||||
/>
|
||||
</QueryInlineField>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user