Update variable name

This commit is contained in:
Ivana Huckova 2022-02-15 20:43:19 +01:00
parent c28b80f2ba
commit ca186f8b0b

View File

@ -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 });
}
}}
/>