Update variable name
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
}}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user