From ca186f8b0b2e638665a2f5664d03de0ead5ae116 Mon Sep 17 00:00:00 2001 From: Ivana Huckova Date: Tue, 15 Feb 2022 20:43:19 +0100 Subject: [PATCH] Update variable name --- .../prometheus/querybuilder/components/MetricSelect.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/app/plugins/datasource/prometheus/querybuilder/components/MetricSelect.tsx b/public/app/plugins/datasource/prometheus/querybuilder/components/MetricSelect.tsx index 86e7b676686..016fefb90c1 100644 --- a/public/app/plugins/datasource/prometheus/querybuilder/components/MetricSelect.tsx +++ b/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 }); } }} />