mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
stackdriver: remove lodash since object assign will do the trick
This commit is contained in:
parent
85ef5c2523
commit
7bdf97d3e6
@ -1,6 +1,5 @@
|
||||
import React, { PureComponent } from 'react';
|
||||
import { TemplateQueryProps } from 'app/types/plugins';
|
||||
import defaultsDeep from 'lodash/defaultsDeep';
|
||||
import SimpleSelect from './SimpleSelect';
|
||||
import { getMetricTypes, extractServicesFromMetricDescriptors } from '../functions';
|
||||
import { MetricFindQueryTypes, TemplateQueryComponentData } from '../types';
|
||||
@ -34,7 +33,7 @@ export class StackdriverTemplateQueryComponent extends PureComponent<TemplateQue
|
||||
this.onServiceChange = this.onServiceChange.bind(this);
|
||||
this.onMetricTypeChange = this.onMetricTypeChange.bind(this);
|
||||
this.onLabelKeyChange = this.onLabelKeyChange.bind(this);
|
||||
this.state = defaultsDeep(this.props.query, this.defaults);
|
||||
this.state = Object.assign(this.defaults, this.props.query);
|
||||
}
|
||||
|
||||
async componentDidMount() {
|
||||
|
Loading…
Reference in New Issue
Block a user