Update variable name

pull/45424/head
Ivana Huckova 3 years ago
parent c28b80f2ba
commit ca186f8b0b
  1. 6
      public/app/plugins/datasource/prometheus/querybuilder/components/MetricSelect.tsx

@ -67,9 +67,9 @@ export function MetricSelect({ query, onChange, onGetMetrics }: Props) {
}}
isLoading={state.isLoading}
options={state.metrics}
onChange={({ value }) => {
if (value) {
onChange({ ...query, metric: value });
onChange={({ metric }) => {
if (metric) {
onChange({ ...query, metric });
}
}}
/>

Loading…
Cancel
Save