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

This commit is contained in:
Erik Sundell 2020-01-22 21:37:40 +01:00 committed by GitHub
parent a115729c55
commit 296af36a6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>